home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / anim / players / mpeg_src.lha / amiga / include / X11 / Xfuncproto.h < prev    next >
C/C++ Source or Header  |  1992-12-08  |  2KB  |  77 lines

  1. /* $XConsortium: Xfuncproto.h,v 1.7 91/05/13 20:49:21 rws Exp $ */
  2. /* 
  3.  * Copyright 1989, 1991 by the Massachusetts Institute of Technology
  4.  *
  5.  * Permission to use, copy, modify, and distribute this software and its
  6.  * documentation for any purpose and without fee is hereby granted, provided 
  7.  * that the above copyright notice appear in all copies and that both that 
  8.  * copyright notice and this permission notice appear in supporting 
  9.  * documentation, and that the name of M.I.T. not be used in advertising
  10.  * or publicity pertaining to distribution of the software without specific, 
  11.  * written prior permission. M.I.T. makes no representations about the 
  12.  * suitability of this software for any purpose.  It is provided "as is"
  13.  * without express or implied warranty.
  14.  *
  15.  */
  16.  
  17. /* Definitions to make function prototypes manageable */
  18.  
  19. #ifndef _XFUNCPROTO_H_
  20. #define _XFUNCPROTO_H_
  21.  
  22. #ifndef NeedFunctionPrototypes
  23. #if defined(FUNCPROTO) || __STDC__ || defined(__cplusplus) || defined(c_plusplus)
  24. #define NeedFunctionPrototypes 1
  25. #else
  26. #define NeedFunctionPrototypes 0
  27. #endif
  28. #endif /* NeedFunctionPrototypes */
  29.  
  30. #ifndef NeedVarargsPrototypes
  31. #if __STDC__ || defined(__cplusplus) || defined(c_plusplus) || (FUNCPROTO&2)
  32. #define NeedVarargsPrototypes 1
  33. #else
  34. #define NeedVarargsPrototypes 0
  35. #endif
  36. #endif /* NeedVarargsPrototypes */
  37.  
  38. #if NeedFunctionPrototypes
  39.  
  40. #ifndef NeedNestedPrototypes
  41. #if __STDC__ || defined(__cplusplus) || defined(c_plusplus) || (FUNCPROTO&8)
  42. #define NeedNestedPrototypes 1
  43. #else
  44. #define NeedNestedPrototypes 0
  45. #endif
  46. #endif /* NeedNestedPrototypes */
  47.  
  48. #ifndef _Xconst
  49. #if __STDC__ || defined(__cplusplus) || defined(c_plusplus) || (FUNCPROTO&4)
  50. #define _Xconst const
  51. #else
  52. #define _Xconst
  53. #endif
  54. #endif /* _Xconst */
  55.  
  56. #ifndef NeedWidePrototypes
  57. #ifdef NARROWPROTO
  58. #define NeedWidePrototypes 0
  59. #else
  60. #define NeedWidePrototypes 1        /* default to make interropt. easier */
  61. #endif
  62. #endif /* NeedWidePrototypes */
  63.  
  64. #endif /* NeedFunctionPrototypes */
  65.  
  66. #ifndef _XFUNCPROTOBEGIN
  67. #ifdef __cplusplus            /* for C++ V2.0 */
  68. #define _XFUNCPROTOBEGIN extern "C" {    /* do not leave open across includes */
  69. #define _XFUNCPROTOEND }
  70. #else
  71. #define _XFUNCPROTOBEGIN
  72. #define _XFUNCPROTOEND
  73. #endif
  74. #endif /* _XFUNCPROTOBEGIN */
  75.  
  76. #endif /* _XFUNCPROTO_H_ */
  77.