/*
- * Copyright (c) 1995, Index Data.
+ * Copyright (c) 1995-1998, 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,
#include <yconfig.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct Z_TooMany
{
int *tooManyWhat;
Odr_null *incompatible;
Odr_null *generic;
Odr_null *dbSpecific;
-#if 0
- Z_SortElement *sortElement;
-#endif
int *key;
#define Z_SortKey_tooMany 1
#define Z_SortKey_duplicate 2
Z_DiagnosticUnit **diagnostics;
} Z_DiagnosticFormat;
-int z_DiagnosticFormat(ODR o, Z_DiagnosticFormat **p, int opt);
+YAZ_EXPORT int z_DiagnosticFormat(ODR o, Z_DiagnosticFormat **p, int opt);
+
+#ifdef __cplusplus
+}
+#endif
#endif