restrict is not a keyword to C++, so don't use it when compiling as C++

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4615 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2008-04-14 21:39:14 +00:00
parent 89fc6d5edd
commit c6a0ad011e
1 changed files with 1 additions and 1 deletions

View File

@ -377,7 +377,7 @@
/*! /*!
* \def WZ_DECL_RESTRICT * \def WZ_DECL_RESTRICT
*/ */
#if WZ_CC_GNU_PREREQ(4,1) && !defined(WZ_CC_INTEL) #if WZ_CC_GNU_PREREQ(4,1) && !defined(WZ_CC_INTEL) && !defined(__cplusplus)
# define WZ_DECL_RESTRICT restrict # define WZ_DECL_RESTRICT restrict
#else #else
# define WZ_DECL_RESTRICT # define WZ_DECL_RESTRICT