Cleanup: Fix build error with MSVC
authorRay Molenkamp <github@lazydodo.com>
Tue, 27 Aug 2019 14:13:23 +0000 (08:13 -0600)
committerRay Molenkamp <github@lazydodo.com>
Tue, 27 Aug 2019 14:13:23 +0000 (08:13 -0600)
`BLI_cpu_support_sse41` needs BLI_System.h.

Reviewers: brecht

source/blender/blenlib/BLI_system.h
source/blender/compositor/operations/COM_DenoiseOperation.cpp
source/blender/editors/space_node/drawnode.c

index 19797ba23bc5e10156b8fb1d025616ee628a1d3e..8c0c9ad99bf6d35981cad61bf40bcd5df27807c6 100644 (file)
 
 #include <stdio.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /** \file
  * \ingroup bli
  */
@@ -53,4 +57,8 @@ int BLI_system_memory_max_in_megabytes_int(void);
 #  define BLI_SYSTEM_PID_H <unistd.h>
 #endif
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* __BLI_SYSTEM_H__ */
index e7068c953fb9c45832d96fe844d7a5983072cd89..3aeaba539f984523ed1ad5d24f082df999b6d9ac 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "COM_DenoiseOperation.h"
 #include "BLI_math.h"
+#include "BLI_system.h"
 #ifdef WITH_OPENIMAGEDENOISE
 #  include "BLI_threads.h"
 #  include <OpenImageDenoise/oidn.hpp>
index 72a73f89227c69ce4506329a15b91bd1b448a04c..b89f163f5798b3ad0169dece89944fa7c2d8b460 100644 (file)
@@ -24,6 +24,7 @@
 
 #include "BLI_blenlib.h"
 #include "BLI_math.h"
+#include "BLI_system.h"
 
 #include "DNA_node_types.h"
 #include "DNA_object_types.h"