diff options
-rw-r--r-- | lib/Makefile.Watcom | 15 | ||||
-rw-r--r-- | src/Makefile.Watcom | 8 |
2 files changed, 23 insertions, 0 deletions
diff --git a/lib/Makefile.Watcom b/lib/Makefile.Watcom index 41d2c302d..a780bbb28 100644 --- a/lib/Makefile.Watcom +++ b/lib/Makefile.Watcom @@ -70,6 +70,13 @@ CFLAGS += -d_WIN32_WINNT=0x0501 -dENABLE_IPV6 CFLAGS += -dUSE_WINDOWS_SSPI !endif +!ifdef %use_winidn +CFLAGS += -dWINVER=0x0600 -dUSE_WIN32_IDN +! if $(__VERSION__) <= 1290 +CFLAGS += -dWANT_IDN_PROTOTYPES +! endif +!endif + # # Change to suite. # @@ -229,6 +236,14 @@ $(LINK_ARG): $(__MAKEFILES__) !ifdef %use_ares @%append $^@ library $(ARES_ROOT)$(DS)cares.lib !endif +!ifdef %use_winidn +! if $(__VERSION__) > 1290 + @%append $^@ library normaliz.lib +! else + @%append $^@ import '_IdnToAscii@20' 'NORMALIZ.DLL'.'IdnToAscii' + @%append $^@ import '_IdnToUnicode@20' 'NORMALIZ.DLL'.'IdnToUnicode' +! endif +!endif $(LIB_ARG): $(__MAKEFILES__) %create $^@ diff --git a/src/Makefile.Watcom b/src/Makefile.Watcom index 1a9629e4b..66c97ef45 100644 --- a/src/Makefile.Watcom +++ b/src/Makefile.Watcom @@ -193,6 +193,14 @@ $(LINK_ARG): $(__MAKEFILES__) !ifdef %use_ares @%append $^@ library $(ARES_ROOT)$(DS)cares.lib !endif +!ifdef %use_winidn +! if $(__VERSION__) > 1290 + @%append $^@ library normaliz.lib +! else + @%append $^@ import '_IdnToAscii@20' 'NORMALIZ.DLL'.'IdnToAscii' + @%append $^@ import '_IdnToUnicode@20' 'NORMALIZ.DLL'.'IdnToUnicode' +! endif +!endif !else @%append $^@ library ..$(DS)lib$(DS)$(LIBNAME)_imp.lib !endif |