diff --git a/src/common/log.h b/src/common/log.h
index f1f6ffae64..291534c67c 100644
--- a/src/common/log.h
+++ b/src/common/log.h
@@ -4,7 +4,9 @@
 
 #pragma once
 
+#ifndef LOGGING
 #define LOGGING
+#endif
 
 enum {
     OS_LEVEL,       // Printed by the emulated operating system