[sr #109514] ltmain.sh: [_MSC_VER] should be [_WIN32] in one place

anonymous <[email protected]>
Newsgroups gmane.comp.gnu.libtool.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.