From: Michael R Sweet Date: Wed, 17 Oct 2018 17:54:23 +0000 (-0400) Subject: More changes to VS projects. X-Git-Tag: v2.2.9~9 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fcups.git;a=commitdiff_plain;h=abfac4cc2cd03cc66978d2573f5796cbde705b5a More changes to VS projects. --- diff --git a/cups/dir.c b/cups/dir.c index fedceb9cb..6b3777842 100644 --- a/cups/dir.c +++ b/cups/dir.c @@ -145,7 +145,7 @@ cupsDirOpen(const char *directory) /* I - Directory name */ cups_dentry_t * /* O - Directory entry or @code NULL@ if there are no more */ cupsDirRead(cups_dir_t *dp) /* I - Directory pointer */ { - _WIN32_FIND_DATA entry; /* Directory entry data */ + WIN32_FIND_DATAA entry; /* Directory entry data */ /* @@ -165,11 +165,11 @@ cupsDirRead(cups_dir_t *dp) /* I - Directory pointer */ * No, find the first file... */ - dp->dir = FindFirstFile(dp->directory, &entry); + dp->dir = FindFirstFileA(dp->directory, &entry); if (dp->dir == INVALID_HANDLE_VALUE) return (NULL); } - else if (!FindNextFile(dp->dir, &entry)) + else if (!FindNextFileA(dp->dir, &entry)) return (NULL); /* diff --git a/cups/http-addrlist.c b/cups/http-addrlist.c index a7d5abcfa..d9a96c4e2 100644 --- a/cups/http-addrlist.c +++ b/cups/http-addrlist.c @@ -62,13 +62,13 @@ httpAddrConnect2( { int val; /* Socket option value */ #ifndef _WIN32 - int flags; /* Socket flags */ -#endif /* !_WIN32 */ - int remaining; /* Remaining timeout */ int i, j, /* Looping vars */ - nfds, /* Number of file descriptors */ - fds[100], /* Socket file descriptors */ + flags, /* Socket flags */ result; /* Result from select() or poll() */ +#endif /* !_WIN32 */ + int remaining; /* Remaining timeout */ + int nfds, /* Number of file descriptors */ + fds[100]; /* Socket file descriptors */ http_addrlist_t *addrs[100]; /* Addresses */ #ifndef HAVE_POLL int max_fd = -1; /* Highest file descriptor */ @@ -84,8 +84,10 @@ httpAddrConnect2( # endif /* HAVE_POLL */ #endif /* O_NONBLOCK */ #ifdef DEBUG +# ifndef _WIN32 socklen_t len; /* Length of value */ http_addr_t peer; /* Peer address */ +# endif /* !_WIN32 */ char temp[256]; /* Temporary address string */ #endif /* DEBUG */ diff --git a/cups/http-support.c b/cups/http-support.c index aff48ab16..767fbf689 100644 --- a/cups/http-support.c +++ b/cups/http-support.c @@ -1768,9 +1768,6 @@ _httpResolveURI( _http_uribuf_t uribuf; /* URI buffer */ int offline = 0; /* offline-report state set? */ # ifdef HAVE_DNSSD -# ifdef _WIN32 -# pragma comment(lib, "dnssd.lib") -# endif /* _WIN32 */ DNSServiceRef ref, /* DNS-SD master service reference */ domainref = NULL,/* DNS-SD service reference for domain */ ippref = NULL, /* DNS-SD service reference for network IPP */ diff --git a/vcnet/cupstestppd.vcxproj b/vcnet/cupstestppd.vcxproj index 34bf1c238..4e5f18a77 100644 --- a/vcnet/cupstestppd.vcxproj +++ b/vcnet/cupstestppd.vcxproj @@ -57,7 +57,7 @@ Disabled ..;..\vcnet;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) + _DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) true EnableFastChecks MultiThreadedDebugDLL @@ -79,7 +79,7 @@ ..;..\vcnet;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) + NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) MultiThreadedDLL Level1 diff --git a/vcnet/ippfind.vcxproj b/vcnet/ippfind.vcxproj index ea191d7da..f75f86a95 100644 --- a/vcnet/ippfind.vcxproj +++ b/vcnet/ippfind.vcxproj @@ -57,7 +57,7 @@ Disabled ..\vcnet;..;..\vcnet\regex;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) + _DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) true EnableFastChecks MultiThreadedDebugDLL @@ -66,7 +66,7 @@ ProgramDatabase - dnssd.lib;ws2_32.lib;%(AdditionalDependencies) + ws2_32.lib;%(AdditionalDependencies) true Console false @@ -80,14 +80,14 @@ ..\vcnet;..;..\vcnet\regex;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) + NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) MultiThreadedDLL Level1 ProgramDatabase - dnssd.lib;ws2_32.lib;%(AdditionalDependencies) + ws2_32.lib;%(AdditionalDependencies) true Console true @@ -101,13 +101,15 @@ + + {c0899b3a-43e7-4bc3-a785-659e1fd2ea83} + {cb4aa6f2-3e84-45be-b505-95cd375e8be3} false {18950a1b-d37a-40c7-b2df-c12986c0526e} - false diff --git a/vcnet/ippserver.vcxproj b/vcnet/ippserver.vcxproj index d8071ab00..ac6a89710 100644 --- a/vcnet/ippserver.vcxproj +++ b/vcnet/ippserver.vcxproj @@ -57,7 +57,7 @@ Disabled ..\vcnet;..;..\vcnet\regex;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) + _DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) true EnableFastChecks MultiThreadedDebugDLL @@ -66,7 +66,7 @@ ProgramDatabase - dnssd.lib;ws2_32.lib;%(AdditionalDependencies) + ws2_32.lib;%(AdditionalDependencies) true Console false @@ -80,14 +80,14 @@ ..\vcnet;..;..\vcnet\regex;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) + NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) MultiThreadedDLL Level1 ProgramDatabase - dnssd.lib;ws2_32.lib;%(AdditionalDependencies) + ws2_32.lib;%(AdditionalDependencies) true Console true @@ -101,10 +101,16 @@ + + {c0899b3a-43e7-4bc3-a785-659e1fd2ea83} + {cb4aa6f2-3e84-45be-b505-95cd375e8be3} false + + {18950a1b-d37a-40c7-b2df-c12986c0526e} + diff --git a/vcnet/ipptool.vcxproj b/vcnet/ipptool.vcxproj index 1b3f69494..17c3f780c 100644 --- a/vcnet/ipptool.vcxproj +++ b/vcnet/ipptool.vcxproj @@ -57,7 +57,7 @@ Disabled ..\vcnet;..;..\vcnet\regex;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) + _DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) true EnableFastChecks MultiThreadedDebugDLL @@ -79,7 +79,7 @@ ..\vcnet;..;..\vcnet\regex;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) + NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) MultiThreadedDLL Level1 diff --git a/vcnet/libcups2.vcxproj b/vcnet/libcups2.vcxproj index 0947e8297..070a6792f 100644 --- a/vcnet/libcups2.vcxproj +++ b/vcnet/libcups2.vcxproj @@ -58,7 +58,7 @@ Disabled ..\vcnet;..;..\vcnet\regex;%(AdditionalIncludeDirectories) - ZLIB_WINAPI;WIN32;DEBUG;_DEBUG;_WINDOWS;_USRDLL;LIBCUPS2_EXPORTS;_CRT_SECURE_NO_DEPRECATE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + DEBUG;_DEBUG;_WINDOWS;_USRDLL;LIBCUPS2_EXPORTS;_CRT_SECURE_NO_DEPRECATE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) true EnableFastChecks MultiThreadedDebugDLL @@ -68,7 +68,7 @@ ProgramDatabase - ws2_32.lib;advapi32.lib;zlibwapi.lib;%(AdditionalDependencies) + ws2_32.lib;advapi32.lib;%(AdditionalDependencies) $(OutDir)libcups2.dll ..\cups\libcups2.def true @@ -85,14 +85,14 @@ MinSpace ..\vcnet;..;..\vcnet\regex;%(AdditionalIncludeDirectories) - ZLIB_WINAPI;WIN32;DEBUG;NDEBUG;_WINDOWS;_USRDLL;LIBCUPS2_EXPORTS;_CRT_SECURE_NO_DEPRECATE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + DEBUG;NDEBUG;_WINDOWS;_USRDLL;LIBCUPS2_EXPORTS;_CRT_SECURE_NO_DEPRECATE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) MultiThreadedDLL Level3 ProgramDatabase - ws2_32.lib;advapi32.lib;zlibwapi.lib;%(AdditionalDependencies) + ws2_32.lib;advapi32.lib;%(AdditionalDependencies) $(OutDir)libcups2.dll ..\cups\libcups2.def true @@ -121,7 +121,6 @@ xcopy /I/Y "$(TargetPath)" WIN32;%(PreprocessorDefinitions) WIN32;%(PreprocessorDefinitions) - @@ -212,7 +211,6 @@ xcopy /I/Y "$(TargetPath)" - WIN32;%(PreprocessorDefinitions) WIN32;%(PreprocessorDefinitions) @@ -246,6 +244,7 @@ xcopy /I/Y "$(TargetPath)" + @@ -257,19 +256,19 @@ xcopy /I/Y "$(TargetPath)" - + - - - + + + @@ -283,14 +282,12 @@ xcopy /I/Y "$(TargetPath)" - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - \ No newline at end of file diff --git a/vcnet/libcups2.vcxproj.filters b/vcnet/libcups2.vcxproj.filters index 7f6f30194..c68ac0a4a 100644 --- a/vcnet/libcups2.vcxproj.filters +++ b/vcnet/libcups2.vcxproj.filters @@ -24,9 +24,6 @@ Source Files - - Source Files - Source Files @@ -108,9 +105,6 @@ Source Files - - Source Files - Source Files @@ -209,9 +203,6 @@ Header Files - - Header Files - Header Files @@ -221,15 +212,6 @@ Header Files - - Header Files - - - Header Files - - - Header Files - Header Files @@ -248,5 +230,20 @@ Header Files + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + \ No newline at end of file diff --git a/vcnet/libcupsimage2.vcxproj b/vcnet/libcupsimage2.vcxproj index 2cd72c330..72d9ffe29 100644 --- a/vcnet/libcupsimage2.vcxproj +++ b/vcnet/libcupsimage2.vcxproj @@ -57,7 +57,7 @@ Disabled ..\vcnet;..;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_WINDOWS;_USRDLL;LIBCUPS2_EXPORTS;_CRT_SECURE_NO_DEPRECATE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + _DEBUG;_WINDOWS;_USRDLL;LIBCUPS2_EXPORTS;_CRT_SECURE_NO_DEPRECATE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) true EnableFastChecks MultiThreadedDebugDLL @@ -84,7 +84,7 @@ MinSpace ..\vcnet;..;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_WINDOWS;_USRDLL;LIBCUPS2_EXPORTS;_CRT_SECURE_NO_DEPRECATE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + NDEBUG;_WINDOWS;_USRDLL;LIBCUPS2_EXPORTS;_CRT_SECURE_NO_DEPRECATE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) MultiThreadedDLL Level3 diff --git a/vcnet/regex.vcxproj b/vcnet/regex.vcxproj index f0469b892..19cc23062 100644 --- a/vcnet/regex.vcxproj +++ b/vcnet/regex.vcxproj @@ -89,7 +89,7 @@ Disabled regex;%(AdditionalIncludeDirectories) - _CRT_SECURE_NO_WARNINGS;WIN32;_DEBUG;_WINDOWS;_USRDLL;REGEX_EXPORTS;%(PreprocessorDefinitions) + _CRT_SECURE_NO_WARNINGS;_DEBUG;_WINDOWS;_USRDLL;REGEX_EXPORTS;%(PreprocessorDefinitions) true EnableFastChecks MultiThreadedDebugDLL @@ -109,7 +109,7 @@ MaxSpeed true regex;%(AdditionalIncludeDirectories) - _CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_WINDOWS;_USRDLL;REGEX_EXPORTS;%(PreprocessorDefinitions) + _CRT_SECURE_NO_WARNINGS;NDEBUG;_WINDOWS;_USRDLL;REGEX_EXPORTS;%(PreprocessorDefinitions) MultiThreadedDLL true @@ -132,7 +132,7 @@ Disabled regex;%(AdditionalIncludeDirectories) - _CRT_SECURE_NO_WARNINGS;WIN32;_DEBUG;_WINDOWS;_USRDLL;REGEX_EXPORTS;%(PreprocessorDefinitions) + _CRT_SECURE_NO_WARNINGS;_DEBUG;_WINDOWS;_USRDLL;REGEX_EXPORTS;%(PreprocessorDefinitions) true EnableFastChecks MultiThreadedDebugDLL @@ -155,7 +155,7 @@ MaxSpeed true regex;%(AdditionalIncludeDirectories) - _CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_WINDOWS;_USRDLL;REGEX_EXPORTS;%(PreprocessorDefinitions) + _CRT_SECURE_NO_WARNINGS;NDEBUG;_WINDOWS;_USRDLL;REGEX_EXPORTS;%(PreprocessorDefinitions) MultiThreadedDLL true diff --git a/vcnet/testfile.vcxproj b/vcnet/testfile.vcxproj index a1dd0b3d1..787b3a005 100644 --- a/vcnet/testfile.vcxproj +++ b/vcnet/testfile.vcxproj @@ -54,7 +54,7 @@ Disabled ..\vcnet;..;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) + _DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) EnableFastChecks MultiThreadedDebug @@ -75,7 +75,7 @@ ..\vcnet;..;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) + NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) MultiThreaded diff --git a/vcnet/testhttp.vcxproj b/vcnet/testhttp.vcxproj index f510f8f75..101112389 100644 --- a/vcnet/testhttp.vcxproj +++ b/vcnet/testhttp.vcxproj @@ -54,7 +54,7 @@ Disabled ..\vcnet;..;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) + _DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) EnableFastChecks MultiThreadedDebug @@ -75,7 +75,7 @@ ..\vcnet;..;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) + NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) MultiThreaded