Remove MSVC support for WZ_DECL_CONST since it didn't work.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4913 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2008-05-04 12:34:20 +00:00
parent 7f96d8ad29
commit 221a2cb4ee
1 changed files with 0 additions and 5 deletions

View File

@ -396,14 +396,9 @@
* \def WZ_DECL_CONST
* GCC: "Many functions do not examine any values except their arguments, and have no effects except the return value. Basically this is just slightly more strict
* class than the pure attribute below, since function is not allowed to read global memory."
* MSVC: "If a function is annotated as noalias, the optimizer can assume that, in addition to the parameters themselves, only first-level indirections of pointer
* parameters are referenced or modified inside the function."
* The gcc const attribute does not permit passing values as pointers, unlike the MSVC attribute. The lowest commmon denominator must be used here.
*/
#if WZ_CC_GNU_PREREQ(2,5) && !defined(WZ_CC_INTEL)
# define WZ_DECL_CONST __attribute__((const,warn_unused_result))
#elif defined(WZ_CC_MSVC) && (_MSC_VER >= 1300)
# define __declspec(noalias)
#else
# define WZ_DECL_CONST
#endif