diff --git a/config.h.in b/config.h.in
index a71b54f..8d84645 100644
--- a/config.h.in
+++ b/config.h.in
@@ -1,6 +1,8 @@
 /* API declaration export attribute */
+#ifndef AL_LIBTYPE_STATIC
 #define AL_API  ${EXPORT_DECL}
 #define ALC_API ${EXPORT_DECL}
+#endif
 
 /* Define any available alignment declaration */
 #define ALIGN(x) ${ALIGN_DECL}
