Commit edc0406f authored by Luis Penaranda's avatar Luis Penaranda

bug in unix, missing brace

parent 6aa451bd
......@@ -29,8 +29,8 @@
#define OPEN_FILE open
#define LSEEK_FD lseek
#define FOPEN_RO(_descriptor,_filename) \
(_descriptor=fopen(_filename,"r")); \
if((_descriptor)==NULL) \
_descriptor=fopen(_filename,"r"); \
if((_descriptor)==NULL){ \
fprintf(stderr,"unable to open file '%s'\n",_filename); \
exit(-1); \
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment