home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEV / DEV.Z / AppKitDefines.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-09  |  1.4 KB  |  80 lines

  1. /*
  2.     AppKitDefines.h
  3.     Application Kit
  4.     Copyright (c) 1995-1996, NeXT Software, Inc.
  5.     All rights reserved.
  6. */
  7. #ifndef _APPKITDEFINES_H
  8. #define _APPKITDEFINES_H
  9.  
  10. //
  11. //  Platform specific defs for externs
  12. //
  13.  
  14. //
  15. // For MACH
  16. //
  17.  
  18. #if defined(__MACH__)
  19.  
  20. #ifdef __cplusplus
  21. // This isnt extern "C" because the compiler will not allow this if it has
  22. // seen an extern "Objective-C"
  23. #define APPKIT_EXTERN        extern
  24. #define PRIVATE_EXTERN        __private_extern__
  25. #else
  26. #define APPKIT_EXTERN        extern
  27. #define PRIVATE_EXTERN        __private_extern__
  28. #endif
  29.  
  30. #define APPKIT_EXTERN_IMP    PUBLIC_EXTERN
  31. #define PRIVATE_EXTERN_IMP    PRIVATE_EXTERN
  32.  
  33.  
  34. //
  35. // For Windows
  36. //
  37.  
  38. #elif defined(WIN32)
  39.  
  40. #ifndef _NSBUILDING_APPKIT_DLL
  41. #define _NSWINDOWS_DLL_GOOP    __declspec(dllimport)
  42. #else
  43. #define _NSWINDOWS_DLL_GOOP    __declspec(dllexport)
  44. #endif
  45.  
  46. #ifdef __cplusplus
  47. #define APPKIT_EXTERN        _NSWINDOWS_DLL_GOOP extern "C"
  48. #define PRIVATE_EXTERN        extern "C"
  49. #else
  50. #define APPKIT_EXTERN        _NSWINDOWS_DLL_GOOP extern
  51. #define PRIVATE_EXTERN        extern
  52. #endif
  53.  
  54. #define APPKIT_EXTERN_IMP    PUBLIC_EXTERN
  55. #define PRIVATE_EXTERN_IMP    PRIVATE_EXTERN
  56.  
  57.  
  58. //
  59. //  For Solaris
  60. //
  61.  
  62. #elif defined(SOLARIS)
  63.  
  64. #ifdef __cplusplus
  65. #define APPKIT_EXTERN        extern "C"
  66. #define PRIVATE_EXTERN        extern "C"
  67. #else
  68. #define APPKIT_EXTERN        extern
  69. #define PRIVATE_EXTERN        extern
  70. #endif
  71.  
  72. #define APPKIT_EXTERN_IMP    APPKIT_EXTERN
  73. #define PRIVATE_EXTERN_IMP    PRIVATE_EXTERN
  74.  
  75.  
  76. #endif
  77.  
  78. #endif // _APPKITDEFINES_H
  79.  
  80.