From: stevenj Date: Thu, 29 Jul 2010 01:34:11 +0000 (-0400) Subject: lcc doesn't support dllimport, thanks to Laurent Vanbeylen for the bug report X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=de44560f94792f7b563f5d0f263fc877060964af;p=nlopt.git lcc doesn't support dllimport, thanks to Laurent Vanbeylen for the bug report darcs-hash:20100729013411-c8de0-d6b68ec8cf89f3ce2a42fdb28f2d934e9448d5d3.gz --- diff --git a/api/nlopt.h b/api/nlopt.h index 7955fa9..0d37c1c 100644 --- a/api/nlopt.h +++ b/api/nlopt.h @@ -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