Add #ifndef to prevent double inclusion of generated header
authorMike Gorse <mgorse@boston.site>
Tue, 13 May 2008 20:28:17 +0000 (16:28 -0400)
committerMark Doffman <mdoff@silver-wind.(none)>
Fri, 16 May 2008 15:11:38 +0000 (16:11 +0100)
tools/c-constants-generator.xsl

index 39168ce..bbcd8cf 100644 (file)
@@ -289,6 +289,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
     <xsl:text>&#10;</xsl:text>
     <xsl:text> */&#10;</xsl:text>
     <xsl:text>&#10;</xsl:text>
+    <xsl:text>#ifndef _ACCESSIBILITY_H_&#10;</xsl:text>
+    <xsl:text>#define _ACCESSIBILITY_H_&#10;</xsl:text>
     <xsl:text>#ifdef __cplusplus&#10;</xsl:text>
     <xsl:text>extern "C" {&#10;</xsl:text>
     <xsl:text>#endif&#10;</xsl:text>
@@ -298,6 +300,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
     <xsl:text>#ifdef __cplusplus&#10;</xsl:text>
     <xsl:text>}&#10;</xsl:text>
     <xsl:text>#endif&#10;</xsl:text>
+    <xsl:text>#endif&#10;</xsl:text>
   </xsl:template>
 
 </xsl:stylesheet>