Update of /cvsroot/libexif/libexif/libjpeg
In directory sc8-pr-cvs1:/tmp/cvs-serv5561/libjpeg
Modified Files:
jpeg-data.c
Log Message:
2003-10-28 Lutz Mueller <lu...@us...>
* libjpeg/jpeg-data.c: Do not depend on unistd.h. Reported by
Jan Patera <pa...@pi...>.
Index: jpeg-data.c
===================================================================
RCS file: /cvsroot/libexif/libexif/libjpeg/jpeg-data.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- jpeg-data.c 28 Oct 2003 18:49:47 -0000 1.14
+++ jpeg-data.c 28 Oct 2003 18:53:44 -0000 1.15
@@ -25,10 +25,6 @@
#include <stdio.h>
#include <string.h>
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
/* #define DEBUG */
struct _JPEGDataPrivate
@@ -84,9 +80,7 @@
if (!d)
return;
-#ifdef HAVE_UNISTD_H
- unlink (path);
-#endif
+ remove (path);
f = fopen (path, "wb");
if (!f) {
free (d);
|