algorithms: Fix windows build
dev note: ``` $ grep -rn "\bssize_t\b" /lib/gcc /lib/gcc/x86_64-pc-linux-gnu/13.2.1/include/acc_prof.h:81:/* "The datatype 'ssize_t' means a signed 32-bit integer for a 32-bit binary /lib/gcc/x86_64-pc-linux-gnu/13.2.1/include/stddef.h:216:typedef long ssize_t; ```
This commit is contained in:
committed by
Mizux Seiha
parent
542bd07f44
commit
e32c5e0f39
@@ -14,7 +14,12 @@
|
||||
#ifndef OR_TOOLS_ALGORITHMS_SET_COVER_MODEL_H_
|
||||
#define OR_TOOLS_ALGORITHMS_SET_COVER_MODEL_H_
|
||||
|
||||
#include <sys/types.h>
|
||||
#if defined(_MSC_VER)
|
||||
#include <cstdint>
|
||||
typedef std::int64_t ssize_t;
|
||||
#else
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
Reference in New Issue
Block a user