From de44560f94792f7b563f5d0f263fc877060964af Mon Sep 17 00:00:00 2001 From: stevenj Date: Wed, 28 Jul 2010 21:34:11 -0400 Subject: [PATCH] lcc doesn't support dllimport, thanks to Laurent Vanbeylen for the bug report darcs-hash:20100729013411-c8de0-d6b68ec8cf89f3ce2a42fdb28f2d934e9448d5d3.gz --- api/nlopt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2