Re: #define TRUE/FALSE in stk.h

From: Brian Denheyer <>
Date: Tue, 20 Jul 1999 11:34:53 -0700 (PDT)

>>>>> "Shiro" == Shiro Kawai <> writes:

  Shiro> In stk.h of 3.99.4, there's a #define of TRUE and FALSE.
  Shiro> When I use stk with other packages whose header files also
  Shiro> define TRUE and FALSE, some compiler print warning.
  Shiro> Can they be like these?

  Shiro> #ifndef FALSE
  Shiro> #define FALSE 0
  Shiro> #endif

  Shiro> #ifndef TRUE
  Shiro> #define TRUE (!FALSE)
  Shiro> #endif

It's certainly going to work. Of course you could put this in the
other packages ;-)

Received on Tue Jul 20 1999 - 20:35:00 CEST

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST