New windows NT/95 port using MSV5.0. To export DLL functions the
[yaz-moved-to-github.git] / include / prt-ext.h
index 5fb4729..988f75e 100644 (file)
 
 #include <yconfig.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
  * Used to keep track of known External definitions (a loose approach
  * to DEFINED_BY).
@@ -95,7 +99,11 @@ struct Z_External
     } u;
 };
 
-int z_External(ODR o, Z_External **p, int opt);
-Z_ext_typeent *z_ext_getentbyref(oid_value val);
+YAZ_EXPORT int z_External(ODR o, Z_External **p, int opt);
+YAZ_EXPORT Z_ext_typeent *z_ext_getentbyref(oid_value val);
+
+#ifdef __cplusplus
+}
+#endif
 
 #endif