]> granicus.if.org Git - libevent/commitdiff
cmake: don't define EVENT__NEED_DLLIMPORT always (fixes VS2013 static build)
authorAzat Khuzhin <a3at.mail@gmail.com>
Mon, 11 Jan 2016 22:37:34 +0000 (01:37 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Sat, 30 Jan 2016 20:54:03 +0000 (23:54 +0300)
Otherwise that #ifdef in visibility.h is useless, and __declspec(dllimport)
will be always on.

Fixes: #314
Fixes: 4545fa9b6866df47ce2f908631a84477a94d5f49 ("Add option to build shared
library")

event-config.h.cmake

index 7cf2493f30875f72af8068428d2ece2111de0a36..76e0d1f981dc802b74764d7c76445b18372e2309 100644 (file)
 /* Define to `int' if <sys/types.h> does not define. */
 #define EVENT__ssize_t @EVENT__ssize_t@
 
-#define EVENT__NEED_DLLIMPORT @EVENT__NEED_DLLIMPORT@
+#cmakedefine EVENT__NEED_DLLIMPORT
 
 /* Define to 1 if you have ERR_remove_thread_stat(). */
 #cmakedefine EVENT__HAVE_ERR_REMOVE_THREAD_STATE