libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: anonymous
Subject: [sr #109514] ltmain.sh: [_MSC_VER] should be [_WIN32] in one place
Date: Mon, 4 Jun 2018 10:21:43 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]