Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Re: fixing the problem of the old gtk header files versus new gtk header files ...

I picked up this thread late in the discussion, but using #ifdef / #endif or #if / #endif around other code is a way to conditionally compile information and the #ifdef can test whether or not other variables have been defined, while #if can test a boolean _expression_ IIRC.  There are variables to know when you are compiling in debug mode as an example, or to test the version of the compiler or target OS...  However, this experience is based on using M$ compilers so it may not help.
 
Best Regards, Nat
 
Wednesday, April 21, 2004 9:55 AM
To: platform-swt-dev@xxxxxxxxxxx
cc:
From: Steve Northover <Steve_Northover@xxxxxxxxxx>
Subject: Re: [platform-swt-dev] Re: fixing the problem of the old gtk header files versus new gtk header files ...



Is there any solution other than removing the offending #define?  What do C projects do to get around this problem.  Perhaps they use the #define when developing but remove it before they ship?


Back to the top