[omniORB] Re: Problem compiling omniORBpy
Randy Shoup
rshoup@tumbleweed.com
Tue, 09 Nov 1999 09:48:21 -0800
Duncan Grisby wrote:
>
> On Saturday 6 November, Craig Rodrigues wrote:
>
> [...AIX...]
>
> > I don't think it will break anything to include strings.h
>
> Unfortunately, it will break NT, since MSVC doesn't have a strings.h.
> In fact, it doesn't have strcasecmp() at all, so in doing NT support,
> I've written my own strcasecmp() implementation. If you get the latest
> CVS snapshot, you'll find that you can define NO_STRCASECMP to enable
> my implementation of it.
>
> Unless anyone objects, I suggest adding -DNO_STRCASECMP to the
> pre-processor flags on AIX, rather than further cluttering the source
> with conditional compilation.
>
BTW, NT does have an equivalent to 'strcasecmp': 'stricmp'. We do the
following in our application, supported on both NT and Solaris:
(for NT)
#ifdef _DLL
#define StrICmp(_p1, _p2) _stricmp( _p1, _p2)
#else
#define StrICmp(_p1, _p2) stricmp( _p1, _p2)
#endif
(for Solaris)
#define StrICmp(_p1, _p2) strcasecmp( _p1, _p2)
-- Randy
_________________________________________________________________
Randy Shoup (650)216-2038
Software Architect rshoup@tumbleweed.com
Tumbleweed Communications Corporation