]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/libc-extension.cc
* flower/libc-extension.cc:
[lilypond.git] / flower / libc-extension.cc
index 6b11b1560f7627539d47cb7f02591f856d89fbbe..b6b32a31cd23c6885e87a947ad79bc0399d8ddc0 100644 (file)
@@ -165,7 +165,16 @@ extern "C" {
   fopencookie (void *cookie, char const *mode, cookie_io_functions_t fun)
   {
     (void) mode;
+#if 0    
     return funopen (cookie, fun.read, fun.write, fun.seek, fun.close);
+#else
+    return funopen (cookie,
+                   (int (*) (void *, char *, int)) fun.read,
+                   (int (*) (void *, char const *, int)) fun.write,
+                   (fpos_t (*) (void *, fpos_t, int)) fun.seek,
+                   (int (*) (void *)) fun.close);
+    
+#endif    
   }
 
 #else /* ! HAVE_FUNOPEN */