summaryrefslogtreecommitdiff
path: root/www/firefox/patches/patch-cd
blob: 5ec1cc84f1b1345daf4b11960e629dc92b03fb25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$NetBSD: patch-cd,v 1.2 2005/09/22 14:14:04 jlam Exp $

--- modules/plugin/base/public/nptypes.h.orig	2004-09-01 16:59:55.000000000 +0000
+++ modules/plugin/base/public/nptypes.h
@@ -78,8 +78,10 @@
     typedef int bool;
   #endif
   #else /* OPENBSD is defined, so use its bool */
+  #if !defined(__cplusplus)
     #include <stdbool.h>
   #endif
+  #endif
   #else
   /*
    * FreeBSD defines uint32_t and bool.
@@ -97,6 +99,7 @@
    */
   #include <stdint.h>
 
+  #if !defined(__cplusplus)
   #if !defined(__GNUC__) || (__GNUC__ > 2 || __GNUC_MINOR__ > 95)
     #include <stdbool.h>
   #else
@@ -106,4 +109,5 @@
      */
     #define bool int
   #endif
+  #endif
 #endif