home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 1 / RISC_DISC_1.iso / pd_share / code / gcc / !GCC / patches / Norcroft / !ReadMe
Encoding:
Text File  |  1994-10-06  |  721 b   |  41 lines

  1.             Norcroft C
  2.             ~~~~~~~~~~
  3.  
  4. For copyright reasons, I cannot distribute changed versions of the Norcroft C
  5. header files, but they may be updated for C++ with little difficulty.
  6.  
  7. There are problem with RISC_OSLib, as one of the structures is named
  8. 'template', which is a reserved word in C++, so unless you are willing to
  9. change the name of this structure, I would not bother with the RISC_OSlib
  10. headers, but only the ANSI headers.
  11.  
  12. The format of the header files is generally :
  13.  
  14. #ifndef GUARD
  15. #define GUARD
  16.  
  17. #include <...>
  18.  
  19. <declarations>
  20.  
  21. #endif
  22.  
  23. This should be changed to:
  24.  
  25. #ifndef GUARD
  26. #define GUARD
  27.  
  28. #include <...>
  29.  
  30. #ifdef __cplusplus
  31. extern "C" {
  32. #endif
  33.  
  34. <declarations>
  35.  
  36. #ifdef __cplusplus
  37.         }
  38. #endif
  39.  
  40. #endif
  41.