Changeset View
Changeset View
Standalone View
Standalone View
src/leveldb/port/port_win.h
Show All 26 Lines | |||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
// | // | ||||
#ifndef STORAGE_LEVELDB_PORT_PORT_WIN_H_ | #ifndef STORAGE_LEVELDB_PORT_PORT_WIN_H_ | ||||
#define STORAGE_LEVELDB_PORT_PORT_WIN_H_ | #define STORAGE_LEVELDB_PORT_PORT_WIN_H_ | ||||
#ifdef _MSC_VER | #ifdef _MSC_VER | ||||
#if !(_MSC_VER >= 1900) | |||||
#define snprintf _snprintf | #define snprintf _snprintf | ||||
#endif | |||||
#define close _close | #define close _close | ||||
#define fread_unlocked _fread_nolock | #define fread_unlocked _fread_nolock | ||||
#ifdef _WIN64 | |||||
#define ssize_t int64_t | |||||
#else | |||||
#define ssize_t int32_t | |||||
#endif | |||||
#endif | #endif | ||||
#include <string> | #include <string> | ||||
#include <stdint.h> | #include <stdint.h> | ||||
#ifdef SNAPPY | #ifdef SNAPPY | ||||
#include <snappy.h> | #include <snappy.h> | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 132 Lines • Show Last 20 Lines |