diff --git a/src/wrapper/Plumed.c b/src/wrapper/Plumed.c
index 28594682760fb0a4b3430b78bb9d684d6affc528..7fac71e6703fb1dd29d1cd7dc340defdb6eec56c 100644
--- a/src/wrapper/Plumed.c
+++ b/src/wrapper/Plumed.c
@@ -19,11 +19,11 @@
    You should have received a copy of the GNU Lesser General Public License
    along with plumed.  If not, see <http://www.gnu.org/licenses/>.
 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
+#include "Plumed.h"
+
 #ifdef __PLUMED_HAS_DLOPEN
 #include <dlfcn.h>
 #endif
-
-#include "Plumed.h"
 #include <stdio.h>
 #include <assert.h>
 #include <stdlib.h>