gcc - Is it possible to have a weak enum? -


i'm using gcc, , distributing object file may used in conjunction third party code. have looks this:

void fn3rdparty(int bar) __attribute ((weak));  void fn(void) {     if(fn3rdparty)         fn3rdparty(some_enum); } 

where some_enum enum , defined third party code if present. tried declaring some_enum weak int, gcc complains type redefined. i'm wondering if there's way around this? (i'd avoid having 1 .o file use software, , used without).

john


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -