mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
Add forgotten patchset for protobuf.
This commit is contained in:
40
dev-libs/protobuf/patches/protobuf_x86-2.4.1.patchset
Normal file
40
dev-libs/protobuf/patches/protobuf_x86-2.4.1.patchset
Normal file
@@ -0,0 +1,40 @@
|
||||
From 09a61c1c5843c5513563767126a4a9d574758bf0 Mon Sep 17 00:00:00 2001
|
||||
From: Humdinger <humdingerb@gmail.com>
|
||||
Date: Wed, 22 Jul 2015 19:53:18 +0200
|
||||
Subject: Add GTEST_OS_HAIKU.
|
||||
|
||||
|
||||
diff --git a/gtest/include/gtest/internal/gtest-port.h b/gtest/include/gtest/internal/gtest-port.h
|
||||
index ee97881..16c70ea 100644
|
||||
--- a/gtest/include/gtest/internal/gtest-port.h
|
||||
+++ b/gtest/include/gtest/internal/gtest-port.h
|
||||
@@ -198,6 +198,8 @@
|
||||
#define GTEST_OS_MAC 1
|
||||
#elif defined __linux__
|
||||
#define GTEST_OS_LINUX 1
|
||||
+#elif defined __HAIKU__
|
||||
+#define GTEST_OS_HAIKU 1
|
||||
#elif defined __MVS__
|
||||
#define GTEST_OS_ZOS 1
|
||||
#elif defined(__sun) && defined(__SVR4)
|
||||
@@ -205,7 +207,7 @@
|
||||
#endif // __CYGWIN__
|
||||
|
||||
#if GTEST_OS_CYGWIN || GTEST_OS_LINUX || GTEST_OS_MAC || GTEST_OS_SYMBIAN || \
|
||||
- GTEST_OS_SOLARIS
|
||||
+ GTEST_OS_SOLARIS || GTEST_OS_HAIKU
|
||||
|
||||
// On some platforms, <regex.h> needs someone to define size_t, and
|
||||
// won't compile otherwise. We can #include it here as we already
|
||||
@@ -236,7 +238,7 @@
|
||||
#define GTEST_USES_SIMPLE_RE 1
|
||||
|
||||
#endif // GTEST_OS_CYGWIN || GTEST_OS_LINUX || GTEST_OS_MAC ||
|
||||
- // GTEST_OS_SYMBIAN || GTEST_OS_SOLARIS
|
||||
+ // GTEST_OS_SYMBIAN || GTEST_OS_SOLARIS || GTEST_OS_HAIKU
|
||||
|
||||
// Defines GTEST_HAS_EXCEPTIONS to 1 if exceptions are enabled, or 0
|
||||
// otherwise.
|
||||
--
|
||||
2.2.2
|
||||
|
||||
Reference in New Issue
Block a user