From e49ce78f00f92b36911c5477a7d82ded638f1c30 Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Sat, 30 Jan 2010 00:28:11 +0000 Subject: [PATCH] * src/lib/Evil.h: change again the redefinition of open(). Needed for the gif loader. But the compilation with vc++ is certainly broken. Will be fixed later with a specific case for vc++. SVN revision: 45725 --- legacy/evil/ChangeLog | 8 ++++++++ legacy/evil/src/lib/Evil.h | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/legacy/evil/ChangeLog b/legacy/evil/ChangeLog index 917326c10d..24a73d9b15 100644 --- a/legacy/evil/ChangeLog +++ b/legacy/evil/ChangeLog @@ -1,3 +1,11 @@ +2010-01-30 Vincent Torri + + * src/lib/Evil.h: + change again the redefinition of open(). Needed + for the gif loader. But the compilation with vc++ + is certainly broken. Will be fixed later with a specific + case for vc++. + 2010-01-30 Vincent Torri * src/lib/evil_fcntl.c: diff --git a/legacy/evil/src/lib/Evil.h b/legacy/evil/src/lib/Evil.h index dfca814ecd..be58b719ed 100644 --- a/legacy/evil/src/lib/Evil.h +++ b/legacy/evil/src/lib/Evil.h @@ -152,7 +152,7 @@ typedef unsigned long gid_t; # define _S_IWUSR _S_IWRITE # define _S_IRUSR _S_IREAD -# define open(path, flag, ...) _open((path), _O_BINARY | (flag), __VA_ARGS__) +# define open(path, flag, ...) _open((path), _O_BINARY | (flag), ##__VA_ARGS__) //# define close(fd) _close(fd) //# define read(fd,buffer,count) _read((fd),(buffer),(count)) //# define write(fd,buffer,count) _write((fd),(buffer),(count))