From 6d93d57ab03f4c13dca65921cadc6f1e6d244cff Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 29 Oct 2014 00:55:49 +0100 Subject: [PATCH] Don't use C++ features when building test code as C. This fixes the build after a6efdb7 which added a method to a test used in both C++ and C test cases. --- Examples/test-suite/keyword_rename.i | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Examples/test-suite/keyword_rename.i b/Examples/test-suite/keyword_rename.i index 3a878ae80..1703285f0 100644 --- a/Examples/test-suite/keyword_rename.i +++ b/Examples/test-suite/keyword_rename.i @@ -35,9 +35,11 @@ KW(chan, fallthrough) KW(end, function) KW(nil,local) +#ifdef __cplusplus struct Keywords { void selfkw(int self) {} }; +#endif /* __cplusplus */ %}