URL:
<http://savannah.gnu.org/support/?109514>
Summary: ltmain.sh: [_MSC_VER] should be [_WIN32] in one
place
Project: GNU Libtool
Submitted by: None
Submitted on: Mon 04 Jun 2018 02:21:41 PM UTC
Category: None
Priority: 5 - Normal
Severity: 3 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Operating System: None
_______________________________________________________
Details:
diff:
#include <stdio.h>
#include <stdlib.h>
-#ifdef _MSC_VER
+#if defined (_WIN32) && !defined (__GNUC__)
# include <direct.h>
# include <process.h>
# include <io.h>
#else
# include <unistd.h>
# include <stdint.h>
# ifdef __CYGWIN__
# include <io.h>
# endif
#endif
The reason is that there are much more compilers for win32 than the
proprietary MSVC. All I'm aware of that are not GCC "based" need process.h
instead of unistd.h.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/support/?109514>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
_______________________________________________
https://lists.gnu.org/mailman/listinfo/libtool