summaryrefslogtreecommitdiff
path: root/mpq-file.h
diff options
context:
space:
mode:
Diffstat (limited to 'mpq-file.h')
-rw-r--r--mpq-file.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/mpq-file.h b/mpq-file.h
index f9b17db..1cec05d 100644
--- a/mpq-file.h
+++ b/mpq-file.h
@@ -1,7 +1,7 @@
#ifndef __MPQ_FILE_H__
#define __MPQ_FILE_H__
-#include "inttypes.h"
+#include <stdint.h>
struct mpq_file_t;
@@ -11,10 +11,18 @@ enum mpqlib_file_seek_t {
MPQLIB_SEEK_END,
};
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct mpq_file_t * mpqlib_open_file(struct mpq_archive_t * mpq_a, int entry);
struct mpq_file_t * mpqlib_open_filename(struct mpq_archive_t * mpq_a, const char * fname);
void mpqlib_close(struct mpq_file_t * mpq_f);
uint32_t mpqlib_read(struct mpq_file_t * mpq_f, void * buffer, uint32_t size);
uint32_t mpqlib_seek(struct mpq_file_t * mpq_f, int32_t offset, enum mpqlib_file_seek_t);
+#ifdef __cplusplus
+}
+#endif
+
#endif