leveldb-ruby 0.3 → 0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/leveldb/port/port_posix.h +9 -0
- metadata +2 -2
data/leveldb/port/port_posix.h
CHANGED
|
@@ -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.
|
|
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
|
+
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.
|