[Kst] kdeextragear-2/kst/kst/datasources/frame
George Staikos
staikos at kde.org
Thu Oct 23 02:55:54 CEST 2003
CVS commit by staikos:
fix linkage
M +15 -7 creaddata.h 1.4
M +12 -5 readdata.h 1.4
--- kdeextragear-2/kst/kst/datasources/frame/creaddata.h #1.3:1.4
@@ -10,8 +10,9 @@
/*** Header file for creaddata.c, which reads barth's frame files ***/
+#ifndef _CREADDATA_H
+#define _CREADDATA_H
+
/* define error codes */
-#ifndef _READDATA_H
#include "readdata.h"
-#endif
#define E_OPEN_CSFILE 10
@@ -38,7 +39,14 @@
extern const char *const CRD_ERROR_CODES[15];
-int CReadData(const char *filename, const char *field_code,
+#ifdef __cplusplus
+extern "C" {
+#endif
+ int CReadData(const char *filename, const char *field_code,
int first_sframe, int first_samp,
int num_sframes, int num_samp,
char return_type, void *data_out,
int *error_code);
+#ifdef __cplusplus
+}
+#endif
+#endif
--- kdeextragear-2/kst/kst/datasources/frame/readdata.h #1.3:1.4
@@ -23,8 +24,14 @@
extern const char *const RD_ERROR_CODES[7];
-int ReadData(const char *filename, const char *field_code,
+#ifdef __cplusplus
+extern "C" {
+#endif
+ int ReadData(const char *filename, const char *field_code,
int first_sframe, int first_samp,
int num_sframes, int num_samp,
char return_type, void *data_out,
int *error_code);
+#ifdef __cplusplus
+}
+#endif
#endif
More information about the Kst
mailing list