diff --git a/sources/Z80.c b/sources/Z80.c
index 575b503..5ff7426 100644
--- a/sources/Z80.c
+++ b/sources/Z80.c
@@ -21,6 +21,9 @@ this library. If not, see . */
#include
#if defined(CPU_Z80_BUILD_ABI) || defined(CPU_Z80_BUILD_MODULE_ABI)
+# ifndef CPU_Z80_USE_ABI
+# define CPU_Z80_USE_ABI
+# endif
# if defined(CPU_Z80_HIDE_ABI)
# define CPU_Z80_ABI static
@@ -29,11 +32,6 @@ this library. If not, see . */
# else
# define CPU_Z80_ABI Z_API_EXPORT
# endif
-
-# ifndef CPU_Z80_USE_ABI
-# define CPU_Z80_USE_ABI
-# endif
-
#endif
#if defined(CPU_Z80_HIDE_API)