[cpp-sp] 03/08: WIN32 is not be defined for Windows ... until after config_win32 is included

Rod Widdowson rdw at steadingsoftware.com
Sat Dec 7 15:54:33 UTC 2024


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch main
in repository cpp-sp.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=c51b96cacf6ff7875d7e724c165585444dc7c915

commit c51b96cacf6ff7875d7e724c165585444dc7c915
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Sat Dec 7 15:17:56 2024 +0000

    WIN32 is not be defined for Windows ...
    until after config_win32 is included
---
 shibsp/internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shibsp/internal.h b/shibsp/internal.h
index f04a3d90..1479f372 100644
--- a/shibsp/internal.h
+++ b/shibsp/internal.h
@@ -23,7 +23,7 @@
 # define FD_SETSIZE 1024
 #endif
 
-#ifdef WIN32
+#if defined (_MSC_VER)
 # define _CRT_SECURE_NO_DEPRECATE 1
 # define _CRT_NONSTDC_NO_DEPRECATE 1
 # define _SCL_SECURE_NO_WARNINGS 1

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list