Include sys/types to make sure __WORDSIZE is set, bug1333.

This commit is contained in:
Wilson Snyder 2018-08-31 06:52:12 -04:00
parent ef5c31b4c9
commit 4684f1d4cc
3 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,6 @@
// Include the GTKWave implementation directly
#include "lxt2/lxt2_write.cpp"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <cerrno>

View File

@ -24,7 +24,6 @@
#include "verilated.h"
#include "verilated_vcd_c.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <cerrno>

View File

@ -206,6 +206,7 @@
#elif defined(__CYGWIN__)
# include <stdint.h>
# include <sys/types.h> // __WORDSIZE
typedef unsigned char uint8_t; ///< 8-bit unsigned type (backward compatibility)
typedef unsigned short int uint16_t; ///< 16-bit unsigned type (backward compatibility)
typedef unsigned char vluint8_t; ///< 8-bit unsigned type
@ -251,6 +252,7 @@ typedef signed __int32 ssize_t; ///< signed size_t; returned fro
# include <stdint.h> // Linux and most flavors
# include <unistd.h> // Linux ssize_t
# include <inttypes.h> // Solaris
# include <sys/types.h> // __WORDSIZE
typedef uint8_t vluint8_t; ///< 32-bit unsigned type
typedef uint16_t vluint16_t; ///< 32-bit unsigned type
typedef int vlsint32_t; ///< 32-bit signed type