Commit 3d981984 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul Committed by Yoni Fogel

Start simplification of tree code, in preparation for merge on delete. Addresses #1195.

git-svn-id: file:///svn/toku/tokudb.1195@6588 c7de825b-a66e-492c-adef-691d508d4ae1
parent cdf22b3f
This diff is collapsed.
...@@ -100,14 +100,23 @@ htonl(u_int32_t x) { ...@@ -100,14 +100,23 @@ htonl(u_int32_t x) {
#define __attribute__(x) #define __attribute__(x)
#elif defined __GNUC__ #elif defined __GNUC__
// Gcc: // Gcc:
// Define ntohl using arpa/inet.h // Define ntohl using arpa/inet.h
#include <arpa/inet.h> #include <arpa/inet.h>
#else #else
#error Not ICC and not GNUC. What compiler? #error Not ICC and not GNUC. What compiler?
#endif #endif
// This hack is to avoid initializing variables that gcc can figure out are not used in an undefined way.
// But some compiler cannot figure it out, so we initialize the value to zero.
#if defined __INTEL_COMPILER
#define MAYBE_INIT(n) = n
#elif defined __GNUC__
#define MAYBE_INIT(n)
#endif
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment