--- a/libupnpp/log.cxx
+++ b/libupnpp/log.cxx
@@ -18,9 +18,9 @@
 
 #include <errno.h>
 
+#include "log.hxx"
+
 using namespace std;
-
-#include "log.hxx"
 
 namespace upnppdebug {