]> git.lizzy.rs Git - linenoise.git/commit
Add MSVC support
authorTad Marshall <tad@tadmarshall.com>
Mon, 17 Oct 2011 22:49:25 +0000 (18:49 -0400)
committerSteve Bennett <steveb@workware.net.au>
Mon, 30 Jan 2012 02:40:37 +0000 (12:40 +1000)
commitf45c1e101209c2d33f0659b1c0810bb575c66713
treedb4c9f544fbf4dcc27796e10ad1c6bcb5f4b94a6
parentbfa7e2b48ef9846321b6756a275a65fca001e021
Add MSVC support

Test for _WIN32 to check for building for Windows.
Test __MINGW32__ to check for using MinGW compiler (on Windows).
If _WIN32 is defined and __MINGW32__ is not defined, assume Microsoft compiler, headers and libraries.
There are other ways this could be done, testing _MSC_VER for example, but these tests work.
Tested with Visual Studio 2005, MinGW 4.6.1 on Windows (mingw-get-inst-20110802.exe) and gcc 4.6.1
in Ubuntu 11.10 (Ubuntu/Linaro 4.6.1-9ubuntu3).
linenoise.c