Revision: 72307
          http://sourceforge.net/p/brlcad/code/72307
Author:   starseeker
Date:     2019-02-01 16:17:39 +0000 (Fri, 01 Feb 2019)
Log Message:
-----------
looks like this file is actually using fopen, not fdopen...

Modified Paths:
--------------
    brlcad/trunk/src/libicv/png.c

Modified: brlcad/trunk/src/libicv/png.c
===================================================================
--- brlcad/trunk/src/libicv/png.c       2019-02-01 16:00:11 UTC (rev 72306)
+++ brlcad/trunk/src/libicv/png.c       2019-02-01 16:17:39 UTC (rev 72307)
@@ -36,12 +36,6 @@
 extern double *uchar2double(unsigned char *data, size_t size);
 extern unsigned char *data2uchar(const icv_image_t *bif);
 
-/* c99 doesn't declare these, but C++ does */
-#if (!defined(_WIN32) || defined(__CYGWIN__)) && !defined(__cplusplus)
-extern FILE *fdopen(int, const char *);
-#endif
-
-
 int
 png_write(icv_image_t *bif, const char *filename)
 {
@@ -62,7 +56,7 @@
 
     fh = fopen(filename, "wb");
     if (UNLIKELY(fh==NULL)) {
-       perror("fdopen");
+       perror("fopen");
        bu_log("ERROR: png_write failed to get a FILE pointer\n");
        return 0;
     }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to