Include sys/types to make sure __WORDSIZE is set, bug1333.
This commit is contained in:
parent
ef5c31b4c9
commit
4684f1d4cc
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue