mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
Fix windows build
git-svn-id: file:///svn/toku/tokudb@10747 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
cab4fe72c8
commit
6daac11581
1 changed files with 17 additions and 0 deletions
17
windows/endian.h
Normal file
17
windows/endian.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
#ifndef ENDIAN_H
|
||||
#define ENDIAN_H
|
||||
|
||||
#if defined(__BYTE_ORDER) || defined(__LITTLE_ENDIAN) || defined(__BIG_ENDIAN)
|
||||
#error Standards are defined for some reason
|
||||
#endif
|
||||
|
||||
//Windows does not exist for big endian machines, only little endian
|
||||
#define __LITTLE_ENDIAN (0x01020304)
|
||||
#define __BIG_ENDIAN (0x04030201)
|
||||
#define __BYTE_ORDER (__LITTLE_ENDIAN)
|
||||
|
||||
|
||||
#endif
|
||||
|
Loading…
Add table
Reference in a new issue