[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] GNU gperf 3.0.3
From: |
Dimitri Papadopoulos-Orfanos |
Subject: |
[PATCH] GNU gperf 3.0.3 |
Date: |
Thu, 28 Feb 2008 22:55:41 +0100 |
User-agent: |
Thunderbird 2.0.0.9 (X11/20071115) |
Hi,
Would such a patch make sense to inline functions on more compilers than
currently supported?
It adds support for MSVC and C99 compilers.
Regards,
--
Dimitri Papadopoulos
--- output.cc.orig 2007-03-31 17:16:05.000000000 +0200
+++ output.cc 2008-02-28 22:43:38.000000000 +0100
@@ -746,12 +746,11 @@
if (option[CPLUSPLUS])
printf ("inline ");
else if (option[KRC] | option[C] | option[ANSIC])
- printf ("#ifdef __GNUC__\n"
+ printf ("#if defined __GNUC__ || defined _MSC_VER\n"
"__inline\n"
- "#else\n"
- "#ifdef __cplusplus\n"
+ "#elif defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
\\\n"
+ " || defined __cplusplus\n"
"inline\n"
- "#endif\n"
"#endif\n");
if (/* The function does not use the 'str' argument? */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] GNU gperf 3.0.3,
Dimitri Papadopoulos-Orfanos <=