patch for OrangeC

Simon Sobisch simonsobisch at web.de
Fri May 2 16:54:27 CEST 2025


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


More information about the gmp-devel mailing list