home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / dev / gui / relative.lha / Relative / DaGuru.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-10  |  2.2 KB  |  106 lines

  1. /**********************************
  2. ** Includes and other common stuff 
  3. **********************************/
  4.  
  5. /* System */
  6. #include <exec/types.h>
  7. #include <exec/memory.h>
  8. #include <exec/devices.h>
  9. #include <exec/io.h>
  10. #include <dos/dos.h>
  11. #include <dos/dostags.h>
  12. #include <graphics/gfxmacros.h>
  13. #include <workbench/workbench.h>
  14. #include <intuition/intuition.h>
  15. #include <intuition/gadgetclass.h>
  16. #include <intuition/imageclass.h>
  17. #include <libraries/gadtools.h>
  18. #include <libraries/reqtools.h>
  19. #include <devices/timer.h>
  20. #include <libraries/commodities.h>
  21.  
  22. /* Prototypes */
  23. #include <clib/alib_protos.h>
  24. #include <clib/exec_protos.h>
  25. #include <clib/dos_protos.h>
  26. #include <clib/icon_protos.h>
  27. #include <clib/graphics_protos.h>
  28. #include <clib/intuition_protos.h>
  29. #include <clib/gadtools_protos.h>
  30. #include <clib/utility_protos.h>
  31. #include <clib/timer_protos.h>
  32. #include <clib/asl_protos.h>
  33. #include <clib/reqtools_protos.h>
  34. #include <clib/commodities_protos.h>
  35.  
  36. /* ANSI C */
  37. #include <stdlib.h>
  38. #include <string.h>
  39. #include <stdio.h>
  40.  
  41. /* Compiler specific stuff */
  42.  
  43. #ifdef _DCC
  44.  
  45. #define REG(x) __ ## x
  46. #define ASM
  47. #define SAVEDS __geta4
  48.  
  49. #else
  50.  
  51. #define REG(x) register __ ## x
  52.  
  53. #if defined __MAXON__ || defined __GNUC__
  54. #define ASM
  55. #define SAVEDS
  56. #else
  57. #define ASM    __asm
  58. #define SAVEDS __saveds
  59. #endif /* if defined ... */
  60.  
  61.  
  62. #ifdef __SASC
  63. #include <pragmas/exec_sysbase_pragmas.h>
  64. #else
  65. #ifndef __GNUC__
  66. #include <pragmas/exec_pragmas.h>
  67. #endif /* ifndef __GNUC__ */
  68. #endif /* ifdef SASC      */
  69.  
  70. #ifndef __GNUC__
  71.  
  72. #include <pragmas/dos_pragmas.h>
  73. #include <pragmas/icon_pragmas.h>
  74. #include <pragmas/graphics_pragmas.h>
  75. #include <pragmas/intuition_pragmas.h>
  76. #include <pragmas/gadtools_pragmas.h>
  77. #include <pragmas/utility_pragmas.h>
  78. #include <pragmas/asl_pragmas.h>
  79. #include <pragmas/reqtools.h>
  80. #include <pragmas/timer_pragmas.h>
  81. #include <pragmas/commodities_pragmas.h>
  82.  
  83. #endif /* ifndef __GNUC__ */
  84.  
  85. #endif /* ifdef _DCC */
  86.  
  87. #ifdef _DCC
  88.  
  89. int brkfunc(void) { return(0); }
  90.  
  91. int wbmain(struct WBStartup *wb_startup)
  92. {
  93.         extern int main(int argc, char *argv[]);
  94.         return (main(0, (char **)wb_startup));
  95. }
  96.  
  97. #endif
  98.  
  99. #ifdef __SASC
  100. int CXBRK(void) { return(0); }
  101. int _CXBRK(void) { return(0); }
  102. void chkabort(void) {}
  103. #endif
  104.  
  105. LONG __stack = 8192;
  106.