Andrew Dunstan wrote:


Tom said:

Would it work to modify c.h so that it #include's libintl.h, then #undefs
these macros, then #includes port.h to define 'em the way we want?
Some or all of this might need to be #ifdef WIN32, but that seems like
a reasonably noninvasive solution if it can work.


IIRC last time I tried this it didn't work too well ;-( I will have another go. I think it's the best way to go.



progress so far: I undid the config changes Bruce had made and undefined printf, fprintf, sprintf, snprintf and vsnprintf after the include of libintl.h in include/c.h. Then to clean up some warnings I undefined vsnprintf and snprintf in interfaces/libpq/win32.h before their redefinition.

That got me through the backend compile and through libpq to ecpg, which fell over at the link stage complaining about missing references to pg_sprintf and pg_snprintf ... not sure how to fix that - windows experts, please advise.

cheers

andrew


---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

              http://www.postgresql.org/docs/faq

Reply via email to