X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fd1_map.h;h=80f9f7ba5a7c4c6d80c457142e8f6e4205b780da;hp=37dfe8795bc30df0c451c0dbdd9813f8b75066e6;hb=6a39772ad0cbd1bcb5d0984cd783d4a9e06bdfdb;hpb=2004bbd9b3bbce5eb8ecc49520255b3d0bf578b9 diff --git a/include/d1_map.h b/include/d1_map.h index 37dfe87..80f9f7b 100644 --- a/include/d1_map.h +++ b/include/d1_map.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995, Index Data. + * Copyright (c) 1995,1996 Index Data. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation, in whole or in part, for any purpose, is hereby granted, @@ -28,15 +28,17 @@ #ifndef D1_MAP_H #define D1_MAP_H +#ifdef __cplusplus +extern "C" { +#endif + 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; @@ -62,4 +64,8 @@ typedef struct data1_maptab struct data1_maptab *next; } data1_maptab; +#ifdef __cplusplus +} +#endif + #endif