summaryrefslogtreecommitdiff
path: root/config/msvc.h
Commit message (Collapse)AuthorAgeFilesLines
* config.h: separate function and function pointer attributes; automateH. Peter Anvin (Intel)2019-08-161-1/+1
| | | | | | | | | | | | Separate out function and function pointer attributes, as not all versions of all compilers support both. Have macros related to function attributes auto-generated by autoheader. As a result, rename config.h.in to unconfig.h, to make it more obvious that it is really intended to be included from some C programs. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* msvc.h: Allow building with MSVC versions older than 1700Iouri Kharon2019-08-071-1/+5
| | | | | | Bug report 3392570. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* Windows: clean up the handling of stat on WindowsH. Peter Anvin2017-04-061-0/+3
| | | | | | | | [f]stat on Windows is messy: we need to use _stati64 for maximum compatibility, but because there is a bunch of stuff wrapped in macros, autoconf sometimes gets the wrong answers. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* MSVC compatibility: clean up the handling of _stati64/_fstati64H. Peter Anvin2017-04-051-3/+6
| | | | | | | | | | | On Windows we need to use _stati64/_fstati64 in order to handle large file sizes, but the handling was broken in the canned MSVC++ configuration. Clean it up and fix it. This addresses BR 3392398. Reported-by: Nikolai Saoukh <nms@otdel-1.org> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* compiler.h: include <sys/types.h>H. Peter Anvin2016-10-191-3/+0
| | | | | | | | | | | Apparently, at least on some OS/2 compilers, <sys/types.h> needs to be included for off_t to be defined. This seems like a generically good idea to include this header whenever it is available. Remove reference to <types.h>. This was supposedly for MSVC, but there is no actual evidence that it is useful beyond <sys/types.h>. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* config/msvc.h: inttypes.h and stdbool.h introduced in MSVS 2013H. Peter Anvin2016-10-041-2/+2
| | | | | | | | | <inttypes.h> and <stdbool.h> were introduced in MS Visual Studio 2013, not 2015. See: https://blogs.msdn.microsoft.com/vcblog/2013/07/19/c99-library-support-in-visual-studio-2013/ Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* Move config.h to a subdirectory, add MSVC-specific config fileH. Peter Anvin2016-10-041-0/+189
Instead of trying to do hacks in the Makefiles, define header files for specific compilers if they can't use autoconf. Currently defined for Microsoft Visual Studio, based on MSDN documentation. It is currently untested. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>