mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-18 00:10:04 +00:00
emulators/libretro-flycast: fix build on FreeBSD 12
Work around the macros major() and minor() being exposed by sys/types.h. Approved by: portmgr (build fix blanket) PR: 274647
This commit is contained in:
parent
30a12533e7
commit
26aa5aa9be
@ -0,0 +1,18 @@
|
||||
--- core/deps/Vulkan-Headers/include/vulkan/vulkan_structs.hpp.orig 2023-11-06 20:05:46 UTC
|
||||
+++ core/deps/Vulkan-Headers/include/vulkan/vulkan_structs.hpp
|
||||
@@ -10,6 +10,15 @@
|
||||
|
||||
#include <cstring> // strcmp
|
||||
|
||||
+/* avoid conflict with macros from sys/types.h */
|
||||
+#ifdef major
|
||||
+# undef major
|
||||
+#endif
|
||||
+
|
||||
+#ifdef minor
|
||||
+# undef minor
|
||||
+#endif
|
||||
+
|
||||
namespace VULKAN_HPP_NAMESPACE
|
||||
{
|
||||
//===============
|
Loading…
Reference in New Issue
Block a user