diff --git a/PyCore/Embed/PyCore.h b/PyCore/Embed/PyCore.h
index 211857da2bf41f54c818e39609eb2aa76256b10e..a936b50e17cc678655887737303914984cfd778b 100644
--- a/PyCore/Embed/PyCore.h
+++ b/PyCore/Embed/PyCore.h
@@ -16,7 +16,6 @@
 #error no need to expose this header to Swig
 #endif
 
-#ifndef USER_API
 #ifndef BORNAGAIN_PYTOOLS_PYCORE_H
 #define BORNAGAIN_PYTOOLS_PYCORE_H
 
@@ -55,4 +54,3 @@
 
 #endif // BORNAGAIN_PYTHON
 #endif // BORNAGAIN_PYTOOLS_PYCORE_H
-#endif // USER_API