rendered paste bodyIndex: modules/io/exempi.c
===================================================================
--- modules/io/exempi.c (revision 8778)
+++ modules/io/exempi.c (working copy)
@@ -37,6 +37,9 @@
xmp_terminate();
}
+#ifndef XMP_OPEN_ONLYXMP
+#define XMP_OPEN_ONLYXMP XMP_OPEN_OPNLYXMP
+#endif
char* exempi_read( const char* filename )
{
@@ -44,7 +47,7 @@
XmpPtr xmp;
char *uri_string;
- f = xmp_files_open_new(filename, XMP_OPEN_OPNLYXMP);
+ f = xmp_files_open_new(filename, XMP_OPEN_ONLYXMP);
if (f == NULL) {
// Golly gee whiz, you can't open that file. xmp_err() or
// something like it could tell us why, if only we wanted to
@@ -82,7 +85,7 @@
XmpFilePtr f;
XmpPtr xmp;
- f = xmp_files_open_new(filename, XMP_OPEN_FORUPDATE | XMP_OPEN_OPNLYXMP);
+ f = xmp_files_open_new(filename, XMP_OPEN_FORUPDATE | XMP_OPEN_ONLYXMP);
if (f == NULL) {
// Then we're doomed.
// WTF is with the magic-number return codes? Maybe it's 1,