-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Daniel Mierswa wrote: > Couldn't it be done with something like a sqlite3.h.in which gets > preprocessed by autotools (relevant switches would be for example > --enable-debug or something) and set constants which can then be used to > opt in/out certain prototypes?
sqlite3.h is not generated from a .in template. Are you volunteering to do that and become the maintainer of it? Secondly your solution would only work for autotools which not everyone uses. Thirdly it wouldn't support the case of people supplying flags at the command line to the compiler which is the usual case. SQLite 3 is shipped with a pkg-config data file so you could try to get the flags into that. In any event futzing with the header file doesn't actually solve anything. If you call a function that has no header then the compiler will whine a little and then you'll still get a link time error. The bottom line is that the presence of declarations in headers only alters compiler warnings for C code and that at link time you are told about there being an issue. Roger -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAksgmOoACgkQmOOfHg372QQ6aQCglydXigRUE+6LEQyIgxzb3JWB bTAAn1OksONBetlQZXY7wbPZ+hCAsWe6 =cYIW -----END PGP SIGNATURE----- _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users