changeset 1241:b96b1604ab85 draft

add extern C
author Daichi Toma <amothic@gmail.com>
date Wed, 26 Oct 2011 09:19:44 +0900
parents cdd04411b8a4
children 9d37fa6bc1da
files example/Eratosthenes/bitmap.h
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/example/Eratosthenes/bitmap.h	Wed Oct 26 09:16:18 2011 +0900
+++ b/example/Eratosthenes/bitmap.h	Wed Oct 26 09:19:44 2011 +0900
@@ -17,6 +17,16 @@
     char  *map;
 } bitmap;
 
+
+extern "C" {
+	bitmap *bitmap_free(bitmap *b);
+	bitmap *bitmap_new(size_t size, const char *filename);
+	int bitmap_save(bitmap *b, const char *filename);
+	void bitmap_fill(bitmap *b, int val);
+	inline int bitmap_set(bitmap *b, size_t where, int val);
+	inline int bitmap_get(bitmap *b, size_t where);
+}
+
 bitmap *bitmap_free(bitmap *b){
     if (b){
         if (b->map) {