chiark / gitweb /
lcc doesn't support dllimport, thanks to Laurent Vanbeylen for the bug report
authorstevenj <stevenj@alum.mit.edu>
Thu, 29 Jul 2010 01:34:11 +0000 (21:34 -0400)
committerstevenj <stevenj@alum.mit.edu>
Thu, 29 Jul 2010 01:34:11 +0000 (21:34 -0400)
darcs-hash:20100729013411-c8de0-d6b68ec8cf89f3ce2a42fdb28f2d934e9448d5d3.gz

api/nlopt.h

index 7955fa93815e7dc6f5bf1d0132979dfb24627971..0d37c1cd493d4d639900c131928ff6e3fc89a17c 100644 (file)
@@ -43,7 +43,7 @@
            #define NLOPT_DLL
    when using NLopt from a DLL, in order to do the proper
    Windows importing nonsense. */
-#if defined(NLOPT_DLL) && (defined(_WIN32) || defined(__WIN32__))
+#if defined(NLOPT_DLL) && (defined(_WIN32) || defined(__WIN32__)) && !defined(__LCC__)
 /* annoying Windows syntax for calling functions in a DLL */
 #  define NLOPT_EXTERN(T) extern __declspec(dllimport) T NLOPT_STDCALL
 #else