home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / AP / JED / JED097-1.TAR / jed / src / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-12  |  1.0 KB  |  61 lines

  1. #ifndef _JED_CONFIG_H_
  2. #define _JED_CONFIG_H_
  3. /*
  4.  *  Copyright (c) 1993, 1994 John E. Davis  (davis@amy.tch.harvard.edu)
  5.  *  All Rights Reserved.
  6.  */
  7.  
  8. #if !defined(unix) && !defined(VMS) && !defined(msdos) && !defined(__os2__)
  9. # define unix
  10. #endif
  11.  
  12. #ifdef unix
  13. # ifndef NO_UNISTD_H
  14. #  include <unistd.h>
  15. # endif
  16. #endif
  17.  
  18. #ifndef NO_STDLIB_H
  19. # include <stdlib.h>
  20. #endif
  21.  
  22. #if defined(msdos) || defined (__GO32__) || defined (__os2__)
  23. #  define pc_system
  24. #endif
  25.  
  26. #ifdef __cplusplus
  27. #define EXTERN extern "C"
  28. #else
  29. #define EXTERN extern
  30. #endif
  31.  
  32. #if defined(_MSC_VER) || defined(__EMX__)
  33. #define strcmpi stricmp
  34. #define strncmpi strnicmp
  35. #endif
  36.  
  37. #ifndef HAS_MOUSE
  38. #if !defined(pc_system) 
  39. #define HAS_MOUSE
  40. #endif
  41. #endif
  42.  
  43. #define LONG long
  44.  
  45. /* #define USE_EFENCE */
  46.  
  47. #ifdef USE_EFENCE
  48. extern char *Xstrcpy(char *, char *);
  49. extern int Xstrcmp(char *a, char *b);
  50. extern char *Xstrncpy(char *, char *, int);
  51. #undef HAS_MEMCPY
  52. #undef HAS_MEMCMP
  53. #undef HAS_MEMSET
  54. #define strcpy Xstrcpy
  55. #define strcmp Xstrcmp
  56. #define strncpy Xstrncpy
  57. #endif
  58.  
  59. #define HAS_ABBREVS
  60. #endif
  61.