leveldb-ruby 0.3 → 0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/leveldb/port/port_posix.h +9 -0
  2. metadata +2 -2
@@ -7,11 +7,20 @@
7
7
  #ifndef STORAGE_LEVELDB_PORT_PORT_POSIX_H_
8
8
  #define STORAGE_LEVELDB_PORT_PORT_POSIX_H_
9
9
 
10
+ #define GCC_VERSION (__GNUC__ * 10000 \
11
+ + __GNUC_MINOR__ * 100 \
12
+ + __GNUC_PATCHLEVEL__)
10
13
  #include <endian.h>
11
14
  #include <pthread.h>
12
15
  #include <stdint.h>
13
16
  #include <string>
17
+
18
+ #if GCC_VERSION > 40500 // check for GCC > 4.5
19
+ #include <atomic>
20
+ #else
14
21
  #include <cstdatomic>
22
+ #endif // if GCC_VERSION > 40500
23
+
15
24
  #include <cstring>
16
25
 
17
26
  namespace leveldb {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: leveldb-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
4
+ version: '0.4'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-06-19 12:28:54.000000000 -07:00
12
+ date: 2011-06-19 14:44:09.000000000 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
  description: LevelDB-Ruby is a Ruby binding to LevelDB.