[Bug libobjc/19024] name collisions libobjc/libmysqlclient

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Mar 1 17:46:00 GMT 2005


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-01 17:46 -------
Here is how I would fix this use objc_hash_* in libobjc and then declare in hash.h, a deperated inline 
functions which call the new functions.  The other thing would be have a new file which has those inline 
functions actually there so we can be still binary compatible.

So:
in hash.h, hash_new becomes objc_hash_new and there would be an inline function called hash_new 
which just calls objc_hash_new.
in hash_compat.c, we have hash_new which just calls objc_hash_new.

What do you think?

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19024



More information about the Gcc-bugs mailing list