Browse Source

notify: fix macOS build, don't include <atomic> if we don't have it

rdb 6 years ago
parent
commit
b141483b22
1 changed files with 4 additions and 1 deletions
  1. 4 1
      dtool/src/prc/notify.cxx

+ 4 - 1
dtool/src/prc/notify.cxx

@@ -19,9 +19,12 @@
 #include "filename.h"
 #include "config_prc.h"
 
-#include <atomic>
 #include <ctype.h>
 
+#ifdef PHAVE_ATOMIC
+#include <atomic>
+#endif
+
 #ifdef BUILD_IPHONE
 #include <fcntl.h>
 #endif