Move GCC attributes into a centraized defines
authorSergey Sharybin <sergey.vfx@gmail.com>
Sun, 1 Sep 2013 15:01:15 +0000 (15:01 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Sun, 1 Sep 2013 15:01:15 +0000 (15:01 +0000)
commit35b61a7512dc1b8b1d8bc562aad2a72d254b8a69
tree5050db48823af6cf23eee62b5a013e2f208fdded
parent901dea87a1266479d3b7aab6cfd2d5fbf6adc393
Move GCC attributes into a centraized defines

Instead of having ifdef __GNUC__ all over the headers
to use special compiler's hints use a special file where
all things like this are concentrated.

Makes code easier to follow and allows to manage special
attributes in more efficient way.

Thanks Campbell for review!
29 files changed:
intern/cycles/SConscript
intern/cycles/blender/CMakeLists.txt
source/blender/blenkernel/BKE_DerivedMesh.h
source/blender/blenkernel/BKE_idprop.h
source/blender/blenkernel/BKE_lamp.h
source/blender/blenkernel/BKE_library.h
source/blender/blenkernel/BKE_modifier.h
source/blender/blenkernel/BKE_report.h
source/blender/blenlib/BLI_compiler_attrs.h [new file with mode: 0644]
source/blender/blenlib/BLI_dynstr.h
source/blender/blenlib/BLI_endian_switch.h
source/blender/blenlib/BLI_math_geom.h
source/blender/blenlib/BLI_math_vector.h
source/blender/blenlib/BLI_memarena.h
source/blender/blenlib/BLI_mempool.h
source/blender/blenlib/BLI_path_util.h
source/blender/blenlib/BLI_smallhash.h
source/blender/blenlib/BLI_string.h
source/blender/blenlib/BLI_string_utf8.h
source/blender/blenlib/BLI_utildefines.h
source/blender/bmesh/intern/bmesh_iterators.h
source/blender/bmesh/intern/bmesh_polygon.h
source/blender/editors/include/UI_interface.h
source/blender/imbuf/intern/jpeg.c
source/blender/makesdna/DNA_ipo_types.h
source/blender/makesdna/intern/SConscript
source/blender/makesrna/RNA_access.h
source/blender/windowmanager/WM_api.h
source/blender/windowmanager/WM_types.h