diff include/animone/types.h @ 26:77a5ea5e996c

*: transfer back to cmake from autotools autotools just made lots of things more complicated than they should have and many things broke (i.e. translations)
author Paper <paper@paper.us.eu.org>
date Thu, 20 Jun 2024 05:56:06 -0400
parents 60ded877339b
children fac2b2d242d3
line wrap: on
line diff
--- a/include/animone/types.h	Thu Jun 20 03:03:05 2024 -0400
+++ b/include/animone/types.h	Thu Jun 20 05:56:06 2024 -0400
@@ -4,18 +4,14 @@
 #include <cstdint>
 
 /* windows is so annoying */
-#ifdef ANIMONE_STATIC
-# define ANIMONE_API
+#ifdef _WIN32
+# ifdef DLL_EXPORT
+#  define ANIMONE_API __declspec(dllexport)
+# else
+#  define ANIMONE_API __declspec(dllimport)
+# endif
 #else
-# ifdef _WIN32
-#  ifdef DLL_EXPORT
-#   define ANIMONE_API __declspec(dllexport)
-#  else
-#   define ANIMONE_API __declspec(dllimport)
-#  endif
-# else
-#  define ANIMONE_API
-# endif
+# define ANIMONE_API
 #endif
 
 /* FIXME configure this in autoconf */