]> granicus.if.org Git - postgresql/commit
I'm at the win32 error messages once more. The DLL load thingy doesn't
authorBruce Momjian <bruce@momjian.us>
Wed, 24 Apr 2002 02:26:06 +0000 (02:26 +0000)
committerBruce Momjian <bruce@momjian.us>
Wed, 24 Apr 2002 02:26:06 +0000 (02:26 +0000)
commit30571b549675ea8dfab2aeeb65eaf607072e86e1
tree882db49faf84c816e6975e90a30ade765ff4c2bf
parentdd4ca824cc91f0c3156d4ed9774b03005d9580e0
I'm at the win32 error messages once more. The DLL load thingy doesn't
work on all win9x machines, so i made it go thru a l ookup table
instead, using the DLL as last resort.  I also moved this out of the
fe-misc.c file because of the size of the lookup ta ble. Who knows, we
might add more other win32 specific code there in the future.

I also fixed a small typo in the pg_config.h.win32 that made the
compiler compla in about the gnu snprintf declaration.

I tried to make this patch with psql coding style. I've successfully
tested this on win2k and win98 and it works fine (i.e. the mes sage
shows on win98 too, it didn't with the old implementation).

Magnus Naeslund
src/include/pg_config.h.win32
src/interfaces/libpq/fe-misc.c
src/interfaces/libpq/win32.c [new file with mode: 0644]
src/interfaces/libpq/win32.mak