#include <string.h>
#include <ctype.h>
-#if _SQUID_MSWIN_ /* Native Windows port and MinGW */
+#if _SQUID_WINDOWS_ /* Native Windows port and MinGW */
#define snprintf _snprintf
#include <windows.h>
/* On Windows ldap_start_tls_s is available starting from Windows XP,
* so we need to bind at run-time with the function entry point
*/
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
if (use_tls) {
HMODULE WLDAP32Handle;
char progname[] = "basic_radius_auth";
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
void
Win32SockCleanup(void)
{
fprintf(stderr, "FATAL: %s: Shared secret not specified\n", argv[0]);
exit(1);
}
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
{
WSADATA wsaData;
WSAStartup(2, &wsaData);
#include "ldap_backend.h"
-#if _SQUID_MSWIN_ /* Native Windows port and MinGW */
+#if _SQUID_WINDOWS_ /* Native Windows port and MinGW */
#define snprintf _snprintf
#include <windows.h>
/* On Windows ldap_start_tls_s is available starting from Windows XP,
* so we need to bind at run-time with the function entry point
*/
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
if (use_tls) {
HMODULE WLDAP32Handle;
#include "digest_common.h"
-#if _SQUID_MSWIN_ /* Native Windows port and MinGW */
+#if _SQUID_WINDOWS_ /* Native Windows port and MinGW */
#define snprintf _snprintf
#include <windows.h>
#include "ldap_backend.h"
-#if _SQUID_MSWIN_ /* Native Windows port and MinGW */
+#if _SQUID_WINDOWS_ /* Native Windows port and MinGW */
#define snprintf _snprintf
#include <windows.h>
/* On Windows ldap_start_tls_s is available starting from Windows XP,
* so we need to bind at run-time with the function entry point
*/
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
if (use_tls) {
HMODULE WLDAP32Handle;
#include <ctype.h>
#endif
-#if _SQUID_MSWIN_ /* Native Windows port and MinGW */
+#if _SQUID_WINDOWS_ /* Native Windows port and MinGW */
#define snprintf _snprintf
#include <windows.h>
/* On Windows ldap_start_tls_s is available starting from Windows XP,
* so we need to bind at run-time with the function entry point
*/
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
if (use_tls) {
HMODULE WLDAP32Handle;
#include "squid.h"
/* The following code section is part of the native Windows Squid port */
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
#include "util.h"
#include <stdlib.h>
while ((dirp->dd_stat < lPos) && readdir(dirp));
}
}
-#endif /* _SQUID_MSWIN_ */
+#endif /* _SQUID_WINDOWS_ */
typedef int64_t off64_t;
#endif
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
union sigval {
int sival_int; /* integer value */
int aio_open(const char *, int);
void aio_close(int);
-#endif /* _SQUID_MSWIN_ */
+#endif /* _SQUID_WINDOWS_ */
#endif /* USE_DISKIO_AIO */
#endif /* __WIN32_AIO_H__ */
#include "squid-old.h"
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
#ifndef _MSWSOCK_
#include <mswsock.h>
#endif
#endif
extern "C" void WINAPI SquidWinSvcMain(DWORD, char **);
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
#if defined(_MSC_VER) /* Microsoft C Compiler ONLY */
void Squid_Win32InvalidParameterHandler(const wchar_t*, const wchar_t*, const wchar_t*, unsigned int, uintptr_t);
#endif
void WIN32_ExceptionHandlerCleanup(void);
static int s_iInitCount = 0;
static HANDLE NotifyAddrChange_thread = INVALID_HANDLE_VALUE;
-#endif /* _SQUID_MSWIN_ */
+#endif /* _SQUID_WINDOWS_ */
static int Squid_Aborting = 0;
WIN32_Exit();
}
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
void
WIN32_IpAddrChangeMonitorExit()
{
void
WIN32_Exit()
{
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
Win32SockCleanup();
#endif
#if USE_WIN32_SERVICE
}
#endif
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
if (dbg_mutex)
DeleteCriticalSection(dbg_mutex);
_exit(0);
}
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
static DWORD WINAPI
WIN32_IpAddrChangeMonitor(LPVOID lpParam)
{
}
return status;
}
-#endif /* _SQUID_MSWIN_ */
+#endif /* _SQUID_WINDOWS_ */
int WIN32_Subsystem_Init(int * argc, char *** argv)
{
svcStatus.dwCheckPoint = 0;
svcStatus.dwWaitHint = 10000;
SetServiceStatus(svcHandle, &svcStatus);
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
_setmaxstdio(Squid_MaxFD);
#endif
}
#endif /* USE_WIN32_SERVICE */
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
if (Win32SockInit() < 0)
return 1;
}
} else {
WIN32_run_mode = _WIN_SQUID_RUN_MODE_INTERACTIVE;
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
opt_no_daemon = 1;
#endif /* USE_WIN32_SERVICE */
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
static int Win32SockInit(void)
{
int iVersionRequested;