This goes to gmp-h.in and allows using GMP from OrangeC with libgmp previously built by gcc-mingw32.

Please consider it for addition (in general free compilers should be "better supported" than MSC, even if they are not that common - at least if it is easy like here).


-#if defined (_MSC_VER) || defined (__BORLANDC__)
+#if defined (_MSC_VER) || defined (__BORLANDC__) \
+ || defined (__ORANGEC__)
 #define __GMP_DECLSPEC_EXPORT  __declspec(dllexport)
 #define __GMP_DECLSPEC_IMPORT  __declspec(dllimport)


-/* Microsoft's C compiler accepts __inline */
-#ifdef _MSC_VER
+/* Several C compiler accept __inline */
+#if defined (_MSC_VER) || defined (__BORLANDC__) \
+ || defined (__ORANGEC__)
 #define __GMP_EXTERN_INLINE  __inline
 #endif
_______________________________________________
gmp-devel mailing list
gmp-devel@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-devel

Reply via email to