home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROS_m68k_bin.lha / AROS / include / aros / system.h < prev   
Encoding:
C/C++ Source or Header  |  1997-02-08  |  1.2 KB  |  55 lines

  1. #ifndef AROS_SYSTEM_H
  2. #define AROS_SYSTEM_H
  3. /*
  4.     (C) 1995-96 AROS - The Amiga Replacement OS
  5.     $Id: system.h,v 1.1 1997/01/09 18:21:17 digulla Exp $
  6.  
  7.     Desc: Analyse the current kind of system
  8.     Lang: english
  9. */
  10. #ifndef _AROS
  11. #   define _AROS
  12. #endif
  13. #ifndef AROS_MACHINE_H
  14. #   include <aros/machine.h>
  15. #endif
  16.  
  17. /**************************************
  18.         Defines
  19. **************************************/
  20. /* 1. Analyze system: Specify a definitive define for each system */
  21. #if defined(_AMIGA) || defined(AMIGA)
  22. #   ifndef _AMIGA /* One define for each system */
  23. #    define _AMIGA
  24. #   endif
  25. #endif
  26.  
  27. /* 2. Makros for debugging and development */
  28. #if defined(TEST) || defined(DEBUG)
  29. #   include <assert.h>
  30. #else
  31. #   define assert(x)        /* empty */
  32. #endif
  33.  
  34. /* 3. Sytem-specific files */
  35. #ifdef _AMIGA
  36. #   include <aros/amiga.h>
  37. #endif
  38. #ifdef linux
  39. #   include <aros/linux.h>
  40. #endif
  41. #ifdef _OSF1
  42. #   include <aros/alpha.h>
  43. #endif
  44. #ifdef __FreeBSD__
  45. #   include <aros/freebsd.h>
  46. #endif
  47.  
  48. /* 4. Calculated #defines */
  49. #if !AROS_STACK_GROWS_DOWNWARDS
  50. #   define AROS_SLOWSTACKTAGS
  51. #   define AROS_SLOWSTACKMETHODS
  52. #endif /* !AROS_STACK_GROWS_DOWNWARDS */
  53.  
  54. #endif /* AROS_SYSTEM_H */
  55.