[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [49487] branches/soc-2012-swiss_cheese/ source/blender: moved 'restrict' definition to BLI_utildefines.h
Jason Wilkins
Jason.A.Wilkins at gmail.com
Wed Aug 1 22:44:54 CEST 2012
Revision: 49487
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=49487
Author: jwilkins
Date: 2012-08-01 20:44:53 +0000 (Wed, 01 Aug 2012)
Log Message:
-----------
moved 'restrict' definition to BLI_utildefines.h
Modified Paths:
--------------
branches/soc-2012-swiss_cheese/source/blender/blenlib/BLI_utildefines.h
branches/soc-2012-swiss_cheese/source/blender/gpu/intern/gpu_immediate.h
Modified: branches/soc-2012-swiss_cheese/source/blender/blenlib/BLI_utildefines.h
===================================================================
--- branches/soc-2012-swiss_cheese/source/blender/blenlib/BLI_utildefines.h 2012-08-01 20:39:14 UTC (rev 49486)
+++ branches/soc-2012-swiss_cheese/source/blender/blenlib/BLI_utildefines.h 2012-08-01 20:44:53 UTC (rev 49487)
@@ -331,4 +331,14 @@
# define UNLIKELY(x) (x)
#endif
+/* Are restricted pointers available? (C99) */
+#if (__STDC_VERSION__ < 199901L)
+ /* Not a C99 compiler */
+ #ifdef __GNUC__
+ #define restrict __restrict__
+ #else
+ #define restrict /* restrict */
+ #endif
+#endif
+
#endif // __BLI_UTILDEFINES_H__
Modified: branches/soc-2012-swiss_cheese/source/blender/gpu/intern/gpu_immediate.h
===================================================================
--- branches/soc-2012-swiss_cheese/source/blender/gpu/intern/gpu_immediate.h 2012-08-01 20:39:14 UTC (rev 49486)
+++ branches/soc-2012-swiss_cheese/source/blender/gpu/intern/gpu_immediate.h 2012-08-01 20:44:53 UTC (rev 49487)
@@ -48,18 +48,6 @@
-/* Are restricted pointers available? (C99) */
-#if (__STDC_VERSION__ < 199901L)
- /* Not a C99 compiler */
- #ifdef __GNUC__
- #define restrict __restrict__
- #else
- #define restrict /* restrict */
- #endif
-#endif
-
-
-
#ifndef GPU_SAFETY
#define GPU_SAFETY (DEBUG && WITH_GPU_SAFETY)
#endif
More information about the Bf-blender-cvs
mailing list