projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor fix.
[yaz-moved-to-github.git]
/
include
/
d1_map.h
diff --git
a/include/d1_map.h
b/include/d1_map.h
index
a11087b
..
80f9f7b
100644
(file)
--- a/
include/d1_map.h
+++ b/
include/d1_map.h
@@
-28,15
+28,17
@@
#ifndef D1_MAP_H
#define D1_MAP_H
#ifndef D1_MAP_H
#define D1_MAP_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct data1_maptag
{
int new_field;
int type;
typedef struct data1_maptag
{
int new_field;
int type;
- enum
- {
- D1_MAPTAG_numeric,
- D1_MAPTAG_string
- } which;
+#define D1_MAPTAG_numeric 1
+#define D1_MAPTAG_string 2
+ int which;
union
{
int numeric;
union
{
int numeric;
@@
-62,4
+64,8
@@
typedef struct data1_maptab
struct data1_maptab *next;
} data1_maptab;
struct data1_maptab *next;
} data1_maptab;
+#ifdef __cplusplus
+}
+#endif
+
#endif
#endif