Bugs item #3016433, was opened at 2010-06-15 13:11 Message generated for change (Comment added) made by mhoenicka You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=379806&aid=3016433&group_id=23824
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed Priority: 5 Private: No Submitted By: Hermann Seib (arakula) Assigned to: Nobody/Anonymous (nobody) Summary: ERRORs everywhere... Initial Comment: Hi, I'm currently trying to make libdbi 0.8.3 compilable with Microsoft C (Visual Studio 2005 ATM, 2008 to follow). I've made quite nice progress in creating a non-invasive configuration, but there's one thing I cannot solve without changing anything in your code: ERROR. Unfortunately, ERROR is defined as "#define ERROR 0" in the Windows SDK (wingdi.h). In dbi_main.c, you've already acknowledged this problem: ---------------- /* must not be called "ERROR" due to a name clash on Windoze */ static const char *my_ERROR = "ERROR"; ---------------- Unfortunately, the same needs to be done in dbi_result.c, where you got >70 occurrences of ERROR. Causing a lot of compiler ERRORs :-) I've done a global search-and-replace in the spirit of your dbi_main code (i.e., replace all occurrences of ERROR with my_ERROR); it would be nice if you could do the same, or choose a better name in a future version. Bye, Hermann ---------------------------------------------------------------------- >Comment By: Markus Hoenicka (mhoenicka) Date: 2010-06-15 23:24 Message: I've fixed this in CVS. BTW I'd recommend to have a look at the current CVS revision. 0.8.3 is pretty much outdated. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=379806&aid=3016433&group_id=23824 ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ libdbi-devel mailing list libdbi-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libdbi-devel