pkgsrc/devel/pccts/patches/patch-ae
fredb b8a9c642b2 Check for __STDC_HOSTED__ to see whether or not to use prototypes and
<stdargs.h>, as well as __STDC__, so this'll build with gcc-3.2.2.
2003-11-09 06:15:24 +00:00

22 lines
575 B
Text

$NetBSD: patch-ae,v 1.1 2003/11/09 06:15:24 fredb Exp $
--- h/pcctscfg.h.orig 1999-10-07 21:19:11.000000000 -0500
+++ h/pcctscfg.h
@@ -44,7 +44,7 @@
/* should test __STDC__ for 1, but some compilers don't set value, just def */
#ifndef __USE_PROTOS
-#ifdef __STDC__
+#if defined(__STDC__) || defined(__STDC_HOSTED__)
#define __USE_PROTOS
#endif
#ifdef __cplusplus
@@ -335,7 +335,7 @@ void special_fopen_actions(char * s)
#endif
#endif
-#ifdef __STDC__
+#if defined(__STDC__) || defined(__STDC_HOSTED__)
#ifndef PCCTS_USE_STDARG
#define PCCTS_USE_STDARG
#endif