boolean.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /*
  2. * CDE - Common Desktop Environment
  3. *
  4. * Copyright (c) 1993-2012, The Open Group. All rights reserved.
  5. *
  6. * These libraries and programs are free software; you can
  7. * redistribute them and/or modify them under the terms of the GNU
  8. * Lesser General Public License as published by the Free Software
  9. * Foundation; either version 2 of the License, or (at your option)
  10. * any later version.
  11. *
  12. * These libraries and programs are distributed in the hope that
  13. * they will be useful, but WITHOUT ANY WARRANTY; without even the
  14. * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  15. * PURPOSE. See the GNU Lesser General Public License for more
  16. * details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with these libraries and programs; if not, write
  20. * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  21. * Floor, Boston, MA 02110-1301 USA
  22. */
  23. /*
  24. * File: boolean.h $XConsortium: boolean.h /main/3 1995/10/26 16:10:48 rswiston $
  25. *
  26. * (c) Copyright 1993, 1994 Hewlett-Packard Company
  27. * (c) Copyright 1993, 1994 International Business Machines Corp.
  28. * (c) Copyright 1993, 1994 Sun Microsystems, Inc.
  29. * (c) Copyright 1993, 1994 Novell, Inc.
  30. */
  31. #ifndef __BOOLEAN_H_
  32. #define __BOOLEAN_H_
  33. #if defined(__aix)
  34. #undef NULL
  35. #define NULL 0
  36. #endif
  37. #if defined(SVR4)
  38. #include <sys/types.h>
  39. #if defined(sun) && defined(_XOPEN_SOURCE)
  40. #ifndef B_TRUE
  41. #define B_TRUE _B_TRUE
  42. #endif
  43. #ifndef B_FALSE
  44. #define B_FALSE _B_FALSE
  45. #endif
  46. #endif /* sun && _XOPEN_SOURCE */
  47. #ifndef boolean
  48. typedef boolean_t boolean;
  49. #endif
  50. #ifndef TRUE
  51. #define TRUE B_TRUE
  52. #endif
  53. #ifndef FALSE
  54. #define FALSE B_FALSE
  55. #endif
  56. #endif /* SVR4 */
  57. #if !defined(SVR4)
  58. #ifndef TRUE
  59. #define TRUE 1
  60. #endif
  61. #ifndef FALSE
  62. #define FALSE 0
  63. #endif
  64. #ifndef boolean
  65. typedef int boolean;
  66. #endif
  67. #endif /* ! SVR4 */
  68. #endif /* __BOOLEAN_H_ */