home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / online / source / c / compilers / C_Interp.sit.hqx / C_Interp / Compatibility.c < prev    next >
Text File  |  1992-05-01  |  329b  |  39 lines

  1. /*** Compatibility.c ***/
  2.  
  3. #include "Compatibility.h"
  4.  
  5. #ifdef THINK_C
  6.  
  7. void Sys_Beep(int n)
  8. {
  9.     SysBeep(n);
  10. }
  11.  
  12. int Mem_Error()
  13. {
  14.     return MemError();
  15. }
  16.  
  17. int Display(Byte *s)
  18. {
  19.     printf((char *)s);
  20. }
  21.  
  22. #else
  23.  
  24. void Sys_Beep(int n)
  25. {
  26.     printf("\a");
  27. }
  28.  
  29. int Mem_Error()
  30. {
  31.     return 0;
  32. }
  33.  
  34. int Display(Byte *s)
  35. {
  36.     printf((char *)s);
  37. }
  38.  
  39. #endif