mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-04 02:08:49 -04:00
19 lines
504 B
C++
19 lines
504 B
C++
$NetBSD: patch-html_ci__string.h,v 1.1 2014/02/16 22:58:51 wiz Exp $
|
|
|
|
Fix build with clang, from
|
|
https://github.com/dhoerl/htmlcxx/
|
|
|
|
--- html/ci_string.h.orig 2011-02-13 22:24:53.000000000 +0000
|
|
+++ html/ci_string.h
|
|
@@ -4,7 +4,9 @@
|
|
#include <cctype>
|
|
#include <string>
|
|
|
|
-#if __GNUC__ >= 3
|
|
+#if __clang_major__ >= 3
|
|
+struct ci_char_traits : public std::char_traits<char>
|
|
+#elif __GNUC__ >= 3
|
|
#include <bits/char_traits.h>
|
|
struct ci_char_traits : public std::char_traits<char>
|
|
#elif defined(__GNUC__)
|