test with icc on linux. addresses #1032

git-svn-id: file:///svn/toku/tokudb.1032b@7810 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Rich Prohaska 2013-04-16 23:57:28 -04:00 committed by Yoni Fogel
parent c0c1d592e8
commit bf1af189e0
4 changed files with 11 additions and 21 deletions

View file

@ -1,31 +1,25 @@
#ifndef TOKU_PORTABILITY_H
#define TOKU_PORTABILITY_H
// Tokutek portability layer
#if defined __cplusplus
extern "C" {
#endif
// Portability layer
#define DEV_NULL_FILE "/dev/null"
#if defined(_MSC_VER) || (defined(__INTEL_COMPILER) && defined(__ICL))
#if defined(_MSC_VER)
// Microsoft compiler
#define TOKU_WINDOWS 1
#endif
#if defined(__INTEL_COMPILER)
// Intel compiler
#if defined(__ICL)
#define TOKU_WINDOWS 1
#endif
#undef DEV_NULL_FILE
#define DEV_NULL_FILE "NUL"
#else
#define TOKU_WINDOWS 0
#define DEV_NULL_FILE "/dev/null"
#endif
#if defined(TOKU_WINDOWS)
#if defined(TOKU_WINDOWS) && TOKU_WINDOWS
// Windows
// ntohl and htonl are defined in winsock.h

View file

@ -10,9 +10,7 @@
#define _FILE_OFFSET_BITS 64
#include "../include/db.h"
#if !defined(TOKU_WINDOWS)
#include <inttypes.h>
#endif
typedef struct brt *BRT;
struct brt_header;
@ -42,7 +40,7 @@ typedef struct __toku_lsn { u_int64_t lsn; } LSN;
/* Make the FILEID a struct for the same reason. */
typedef struct __toku_fileid { u_int32_t fileid; } FILENUM;
#ifndef TOKU_WINDOWS
#if !TOKU_WINDOWS
typedef enum __toku_bool { FALSE=0, TRUE=1} BOOL;
#endif

View file

@ -11,7 +11,7 @@
#include "portability.h"
#include "os.h"
#if defined(TOKU_WINDOWS)
#if TOKU_WINDOWS
#include "zlib.h"
#include "toku_pthread.h"
#include <dirent.h>

View file

@ -9,9 +9,7 @@
#include "list.h"
#include "memarena.h"
#include <stdio.h>
#if !defined(TOKU_WINDOWS)
#include <toku_pthread.h>
#endif
#include <sys/types.h>
#include <string.h>