diff --git a/sources/Z80.c b/sources/Z80.c
index 5ff7426..83ede0b 100644
--- a/sources/Z80.c
+++ b/sources/Z80.c
@@ -20,6 +20,14 @@ this library. If not, see . */
#include
#include
+#if defined(CPU_Z80_HIDE_API)
+# define CPU_Z80_API static
+#elif defined(CPU_Z80_STATIC)
+# define CPU_Z80_API
+#else
+# define CPU_Z80_API Z_API_EXPORT
+#endif
+
#if defined(CPU_Z80_BUILD_ABI) || defined(CPU_Z80_BUILD_MODULE_ABI)
# ifndef CPU_Z80_USE_ABI
# define CPU_Z80_USE_ABI
@@ -34,14 +42,6 @@ this library. If not, see . */
# endif
#endif
-#if defined(CPU_Z80_HIDE_API)
-# define CPU_Z80_API static
-#elif defined(CPU_Z80_STATIC)
-# define CPU_Z80_API
-#else
-# define CPU_Z80_API Z_API_EXPORT
-#endif
-
#if defined(CPU_Z80_USE_LOCAL_HEADER)
# include "Z80.h"
#else