Fix -mno-cygwin warnings

This commit is contained in:
Wilson Snyder 2010-02-04 08:38:00 -05:00
parent 59cc61529b
commit 8b324249b1
2 changed files with 6 additions and 2 deletions

View File

@ -37,7 +37,11 @@
# define VL_ATTR_ALIGNED(alignment) __attribute__ ((aligned (alignment)))
# define VL_ATTR_ALWINLINE __attribute__ ((always_inline))
# define VL_ATTR_NORETURN __attribute__ ((noreturn))
# ifdef _WIN32
# define VL_ATTR_PRINTF(fmtArgNum) // GCC with MS runtime will fool the print arg checker
# else
# define VL_ATTR_PRINTF(fmtArgNum) __attribute__ ((format (printf, fmtArgNum, fmtArgNum+1)))
# endif
# define VL_ATTR_UNUSED __attribute__ ((unused))
# define VL_FUNC __func__
# define VL_LIKELY(x) __builtin_expect(!!(x), 1)

View File

@ -367,7 +367,7 @@ string V3Options::getenvSYSTEMC_ARCH() {
// Hardcoded with MINGW current version. Would like a better way.
string sysname = "MINGW32_NT-5.0";
var = "mingw32";
#elsif defined (_WIN32)
#elif defined (_WIN32)
string sysname = "WIN32";
var = "win32";
#else