keysyms-update: Add deprecation guards to the deprecated header
authorEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 11 Jun 2012 12:46:38 +0000 (13:46 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 11 Jun 2012 12:46:38 +0000 (13:46 +0100)
We still need to add them in case the header is directly included.

clutter/clutter-keysyms-update.pl

index e834bbe..7c7af1e 100755 (executable)
@@ -117,6 +117,8 @@ print OUT_KEYSYMS_COMPAT<<EOF;
 #ifndef __CLUTTER_KEYSYMS_DEPRECATED_H__
 #define __CLUTTER_KEYSYMS_DEPRECATED_H__
 
+#ifndef CLUTTER_DISABLE_DEPRECATED
+
 EOF
 
 while (<IN_KEYSYMDEF>)
@@ -200,6 +202,8 @@ EOF
 
 print OUT_KEYSYMS_COMPAT<<EOF;
 
+#endif /* CLUTTER_DISABLE_DEPRECATED */
+
 #endif /* __CLUTTER_KEYSYMS_DEPRECATED_H__ */
 EOF