mirror of
https://git.freebsd.org/ports.git
synced 2025-06-14 17:20:29 -04:00
Add a few patches to fix several different build errors that prevented the port from building with GCC 6 (which uses C++14 by default) as well as clang from base. PR: 219294 Approved by: maintainer timeout (amdmi3, 17 days)
16 lines
603 B
C
16 lines
603 B
C
Use static_assert provided by the compiler to avoid redefining it and breaking
|
|
headers which use the official version.
|
|
--- include/StaticAssert.h.orig 2009-10-11 20:53:01 UTC
|
|
+++ include/StaticAssert.h
|
|
@@ -10,11 +10,5 @@
|
|
#ifndef __OLX__STATICASSERT_H__
|
|
#define __OLX__STATICASSERT_H__
|
|
|
|
-template <bool b> class static_assert_failure;
|
|
-template <> class static_assert_failure<true> { char foo; };
|
|
-template <int s> class static_assert_test{};
|
|
-
|
|
-#define static_assert(X, desc) \
|
|
- typedef static_assert_test< (int)sizeof(static_assert_failure< (bool)(X) >) > static_assert_typedef_##desc;
|
|
|
|
#endif
|