Nobuyoshi Nakada
2/12/2009 5:14:00 AM
Hi,
At Thu, 12 Feb 2009 09:11:18 +0900,
John Ky wrote in [ruby-talk:327815]:
> When I include ruby.h, I'm getting new macros defined such as strcmpcase,
> and close on the Windows platform. This is conflicting with macros and
> function names in my own project. Is there a way to disable these macro
> definitions?
There is no strcmpcase, so I guess you meant strcasecmp in
win32.h, right?
#define strcasecmp stricmp
#define strncasecmp strnicmp
These definitions are specific for MSVCRT which doesn't provide
these standard functions, and if you have same functions, you
can #undef them of course.
--
Nobu Nakada