Commit 3b1af0ba authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(TRUE, FALSE): AIX porting: Undefine them if they are defined, but

make sure they are defined to sensible values first.
parent 98cde048
/*
* $Id: misc-types.h,v 0.5 1995/01/01 20:17:09 ceder Exp $
* $Id: misc-types.h,v 0.6 1996/08/03 15:54:28 ceder Exp $
* Copyright (C) 1990, 1991, 1994, 1995 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -49,6 +49,21 @@
#define _MISC_TYPES_ALREADY_INCLUDED__
/* AIX 3.2 defines FALSE in <sys/types.h>. */
#ifdef FALSE
# if FALSE != 0
# error FALSE was defined to a non-zero value
# endif
# undef FALSE
#endif
#ifdef TRUE
# if TRUE != 1
# error TRUE was defined to a non-one value
# endif
# undef TRUE
#endif
typedef enum { FALSE = 0, TRUE = 1 } Bool;
typedef enum { OK = 017, FAILURE = 17 } Success;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment