This macro allows to define MAGIC constant without compiler warnings or sub-optimizations. Frediano Ziglio (2): Detects processor endianess using preprocessor Define and use new SPICE_MAGIC_CONST macro spice/Makefile.am | 1 + spice/compiler.h | 89 +++++++++++++++++++++++++++++++++++++++++++++++ spice/controller_prot.h | 2 +- spice/foreign_menu_prot.h | 2 +- spice/macros.h | 7 ++++ spice/protocol.h | 2 +- spice/qxl_dev.h | 4 +-- spice/stats.h | 2 +- spice/vdi_dev.h | 2 +- 9 files changed, 104 insertions(+), 7 deletions(-) create mode 100644 spice/compiler.h -- 2.1.0 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel