home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 113 / EnigmaAmiga113CD.iso / software / sviluppo / quake_src / amigacompiler.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-17  |  1.3 KB  |  46 lines

  1. /* 
  2. Copyright (C) 1996-1997 Id Software, Inc. 
  3.  
  4. This program is free software; you can redistribute it and/or 
  5. modify it under the terms of the GNU General Public License 
  6. as published by the Free Software Foundation; either version 2 
  7. of the License, or (at your option) any later version. 
  8.  
  9. This program is distributed in the hope that it will be useful, 
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of 
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.   
  12.  
  13. See the GNU General Public License for more details. 
  14.  
  15. You should have received a copy of the GNU General Public License 
  16. along with this program; if not, write to the Free Software 
  17. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. 
  18.  
  19. */ 
  20.  
  21. /* compiler dependant definitions */
  22.  
  23. #ifdef __SASC
  24. #   define SAVEDS       __saveds
  25. #   define ASM          __asm
  26. #   define REG(x,y)     register __##x y
  27. #elif defined(__GNUC__)
  28. #   define SAVEDS
  29. #   define ASM
  30. #   define REG(x,y)     y __asm__(#x)
  31. #elif defined(_DCC)
  32. #   define SAVEDS       __geta4
  33. #   define ASM
  34. #   define REG(x,y)     __##x y
  35. #elif defined(__STORM__)
  36. #   define SAVEDS       __saveds
  37. #   define ASM
  38. #   define REG(x,y)     register __##x y
  39. #elif defined(__VBCC__)
  40. #   define SAVEDS       __saveds
  41. #   define ASM
  42. #   define REG(x,y)     __reg(#x) y
  43. #else
  44. #   error   add #defines for your compiler...
  45. #endif
  46.