rocksdb/java
agiardullo 79373c372d Fix ROCKSDB_WARNING
Summary:
ROCKSDB_WARNING is only defined if either ROCKSDB_PLATFORM_POSIX or OS_WIN is defined.  This works well for building rocksdb with its own build scripts.  But this won't work when an outside project(like mongodb) doesn't define ROCKSDB_PLATFORM_POSIX.

This fix defines ROCKSDB_WARNING for all platforms.  No idea if its defined correctly on non-posix,non-windows platforms but this is no worse that the current situation where this macro is missing on unexpected platforms.

This fix should hopefully fix anyone whose build broke now that we've switched from using #warning to Pragma (to support windows).  Unfortunately, while mongo-rocks compiles, it ignores the Pragma and doesn't print a warning.  I have not been able to figure out a way to implement this portably on all platforms.

Of course, an alternate solution would be to just get rid of ROCKSDB_WARNING and live with include file redirects indefinitely.  Thoughts?

Test Plan: build rocks, build mongorocks

Reviewers: igor, kradhakrishnan, IslamAbdelRahman, sdong

Reviewed By: sdong

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D42477
2015-07-17 11:04:55 -07:00
..
benchmark/src/main/java/org/rocksdb/benchmark Bugfix remove deprecated option use which was removed in previous commit 019ecd1932 2015-04-30 23:16:04 +01:00
crossbuild Moved Java main classes into src/main/java 2015-02-01 20:04:51 +00:00
rocksjni Fix ROCKSDB_WARNING 2015-07-17 11:04:55 -07:00
samples/src/main/java Fixed a typo in RocksDBSample.java 2015-03-25 11:09:30 -07:00
src Merge pull request #639 from cleaton/setMaxTableFileSize 2015-07-14 23:23:06 +02:00
HISTORY-JAVA.md Update HISTORY.md for 3.10.0 2015-03-24 16:39:39 -07:00
jdb_bench.sh Moved Java Benchmark main classes into benchmark/src/main/java 2015-02-01 20:05:10 +00:00
Makefile Resolve Java test dependencies from local maven repo if present 2015-07-14 18:42:33 +01:00
RELEASE.md Release.md - Remove version change instrcution 2015-02-01 14:32:51 +01:00
rocksjni.pom [RocksJava] Maven build fix 2015-03-24 22:52:30 +01:00