]> granicus.if.org Git - postgresql/commitdiff
Make sure ecpg header files do not have a comment lasting several lines, one of
authorMichael Meskes <meskes@postgresql.org>
Mon, 1 Feb 2016 12:10:40 +0000 (13:10 +0100)
committerMichael Meskes <meskes@postgresql.org>
Mon, 1 Feb 2016 12:21:00 +0000 (13:21 +0100)
which is a preprocessor directive. This leads ecpg to incorrectly parse the comment as nested.

src/interfaces/ecpg/include/datetime.h
src/interfaces/ecpg/include/decimal.h

index e7d6d2144aa7af511a1aa070b6880f6410aabd98..9394a129f1b725520ec8c83d6b88f6388055b736 100644 (file)
@@ -5,8 +5,8 @@
 
 #include <ecpg_informix.h>
 
-#ifndef _ECPGLIB_H                             /* source created by ecpg which defines these
-                                                                * symbols */
+/* source created by ecpg which defines these symbols */
+#ifndef _ECPGLIB_H
 typedef timestamp dtime_t;
 typedef interval intrvl_t;
 #endif   /* ndef _ECPGLIB_H */
index 7efed476932a2a7c6e6045d01fdd34e61807429a..11b02de8aef006cf47e31683d99f6232fe37866b 100644 (file)
@@ -5,8 +5,8 @@
 
 #include <ecpg_informix.h>
 
-#ifndef _ECPGLIB_H                             /* source created by ecpg which defines this
-                                                                * symbol */
+/* source created by ecpg which defines this */
+#ifndef _ECPGLIB_H
 typedef decimal dec_t;
 #endif   /* ndef _ECPGLIB_H */