Nicholas Yue - 2007-03-27

Hi

  While including the file ri.h, I have found that the "EXTERN" symbol is clashing with Ruby's header file (on OSX anyway).

  Looking at some other header files, I see that some uses DLLIMPORT/DLLEXPORT instead, even then, the put a check in to ensure that it is not already defined e.g.

          #ifndef DLLIMPORT
          #if defined(_WIN32) || defined(_WINDOWS)
          #ifdef DLL
          #define DLLIMPORT __declspec(dllimport)
          #else
          #define DLLIMPORT
          #endif /* DLL */
          #else
          #define DLLIMPORT
          #endif
          #endif

  For your consideration.

Regards