Merge pull request #540 from dalgaaf/wip-da-fix-elif

Fix '#elif with no expression'
main
Igor Canadi 10 years ago
commit 413e35273e
  1. 2
      port/stack_trace.cc
  2. 2
      util/env_posix.cc
  3. 2
      util/xfunc.h

@ -71,7 +71,7 @@ void PrintStackTraceLine(const char* symbol, void* frame) {
fprintf(stderr, "\n"); fprintf(stderr, "\n");
} }
#elif OS_MACOSX #elif defined(OS_MACOSX)
void PrintStackTraceLine(const char* symbol, void* frame) { void PrintStackTraceLine(const char* symbol, void* frame) {
static int pid = getpid(); static int pid = getpid();

@ -1412,7 +1412,7 @@ class PosixEnv : public Env {
struct timespec ts; struct timespec ts;
clock_gettime(CLOCK_MONOTONIC, &ts); clock_gettime(CLOCK_MONOTONIC, &ts);
return static_cast<uint64_t>(ts.tv_sec) * 1000000000 + ts.tv_nsec; return static_cast<uint64_t>(ts.tv_sec) * 1000000000 + ts.tv_nsec;
#elif __MACH__ #elif defined(__MACH__)
clock_serv_t cclock; clock_serv_t cclock;
mach_timespec_t ts; mach_timespec_t ts;
host_get_clock_service(mach_host_self(), CALENDAR_CLOCK, &cclock); host_get_clock_service(mach_host_self(), CALENDAR_CLOCK, &cclock);

@ -20,7 +20,7 @@ namespace rocksdb {
#if (ROCKSDB_XFTEST_FORCE == 1) #if (ROCKSDB_XFTEST_FORCE == 1)
#define XFUNC #define XFUNC
#endif #endif
#elif NDEBUG #elif defined(NDEBUG)
#else #else
#define XFUNC #define XFUNC
#endif #endif

Loading…
Cancel
Save