diff --git a/panda/src/physics/physicalNode.cxx b/panda/src/physics/physicalNode.cxx index 18858b6201..87b8216eb1 100644 --- a/panda/src/physics/physicalNode.cxx +++ b/panda/src/physics/physicalNode.cxx @@ -14,7 +14,9 @@ #include "physicalNode.h" #include "physicsManager.h" +#ifdef PHAVE_ATOMIC #include +#endif // static stuff. static std::atomic_flag warned_copy_physical_node = ATOMIC_FLAG_INIT;