home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / recio213.zip / portable < prev    next >
Text File  |  1995-09-05  |  2KB  |  64 lines

  1. This file lists changes to recio in order to compile it on other 
  2. compilers.  These changes are passed along to help you get the 
  3. recio library up and running quickly, but have not been tested by 
  4. the recio author nor guaranteed by the contributor.  Contributor's 
  5. changes may not have been tested with the latest version of recio.
  6.  
  7. *** MICROSOFT VISUAL C++ ***
  8.  
  9. From: jamesd@freenet.vancouver.bc.ca (James Davidson) 
  10.       Thu Jun 29 13:18:52 1995
  11.  
  12. Here are the changes I had to make to recio.h to make the library 
  13. using the MS Visual C++ 1.5 compiler.
  14.  
  15. I added the #elif section to the compiler dependencies section 
  16. as follows:
  17.  
  18. /* compiler dependencies */
  19. #if defined (__BORLANDC__)
  20. #define NSBUFSIZ    34       /* string buffer sized for ltoa, dtoa, etc */
  21.  
  22. #ifndef TIME_T_MIN
  23. #define TIME_T_MIN  ((time_t)0)
  24. #endif
  25.  
  26. #ifndef TIME_T_MAX
  27. #ifndef LONG_MAX
  28. #include <limits.h>
  29. #endif
  30. #define TIME_T_MAX  ((time_t)LONG_MAX)
  31. #endif
  32.  
  33. /*
  34. ** Additions start here **
  35. */
  36. #elif defined _MSC_VER       /* _MSC_VER is defined for MS compilers */
  37. #define NSBUFSIZ    34       /* I just copied this -- not researched */
  38.  
  39. #ifndef TIME_T_MIN
  40. #define TIME_T_MIN  ((time_t)0)
  41. #endif
  42.  
  43. #ifndef TIME_T_MAX
  44. #ifndef LONG_MAX
  45. #include <limits.h>
  46. #endif
  47. #define TIME_T_MAX  ((time_t)LONG_MAX)
  48. #endif
  49.  
  50. #define ltoa _ltoa           /* Functions provided, just given different */
  51. #define ultoa _ultoa         /* names to comply with ansi standard */
  52.  
  53. #define stdprn _stdprn       /* Ditto for this variable */
  54. /*
  55. ** End of additions **
  56. */
  57.  
  58. #else
  59. #error For this compiler, you need to set:
  60. #error (1) NSBUFSIZ.  See DESIGN.TXT section 3.6.
  61. #error (2) TIME_T_MIN & TIME_T_MAX.  See DESIGN.TXT section 3.5.
  62. #endif
  63.  
  64.