sizes 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/ext/sizes/sizes.c +12 -0
- data/sizes.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.1
|
data/ext/sizes/sizes.c
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
#include "ruby.h"
|
2
2
|
|
3
|
+
#if HAVE_STDDEF_H
|
4
|
+
#include <stddef.h>
|
5
|
+
#endif
|
6
|
+
|
7
|
+
#if HAVE_STDLIB_H
|
8
|
+
#include <stdlib.h>
|
9
|
+
#endif
|
10
|
+
|
11
|
+
#if HAVE_INTTYPES_H
|
12
|
+
#include <inttypes.h>
|
13
|
+
#endif
|
14
|
+
|
3
15
|
/* I almost wonder if I should have just generated this file with Ruby. Ah, well... */
|
4
16
|
|
5
17
|
static VALUE sizeof_char(VALUE self) { return INT2FIX(sizeof(char)); }
|
data/sizes.gemspec
CHANGED