ESQL/C preprocessor question
Posted in 1995
Srini Raman — — source: Informix-list mailing list archive (1991-1998)
Is there a way to define a macro, which can be used both in C file and ESQL/C file. Say, I want to declare ------ x.h #define IX_LEN 10 typedef struct _x { char x[IX_LEN]; } tx; and use it in a file with SQL and a file with no SQL. I want to avoid defining that macro twice; once for normal C file and once for ESQL/C file. I get syntax error (for the #define) when I include x.h in the ESQL/C file. Thanks, --srini Srinivasan Raman T KENETECH Windpower Inc., 6952, Preston Avenue, Livermore, CA 94550 (510)455 3252 anl!srini@netcom.com