summaryrefslogtreecommitdiff
path: root/www/htmlcxx/patches/patch-html_ci__string.h
blob: d31923e0298bfafc4333fe85d4f5af8396b0792b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$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__)