X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib%2Ffopen.c;h=f9d6763d21a1776ad3e9ccd446ac2fb95d8054b6;hb=931b01b091932a1f796c23379ea32abb68bd5895;hp=81c861724ec751a5b51ada8a7b6834c474ecd050;hpb=7be93f2d05131d061bd4790ae33c8d50f50010d7;p=platform%2Fupstream%2Fm4.git diff --git a/lib/fopen.c b/lib/fopen.c index 81c8617..f9d6763 100644 --- a/lib/fopen.c +++ b/lib/fopen.c @@ -1,5 +1,5 @@ /* Open a stream to a file. - Copyright (C) 2007-2011 Free Software Foundation, Inc. + Copyright (C) 2007-2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -16,21 +16,26 @@ /* Written by Bruno Haible , 2007. */ +/* If the user's config.h happens to include , let it include only + the system's here, so that orig_fopen doesn't recurse to + rpl_fopen. */ +#define __need_FILE #include /* Get the original definition of fopen. It might be defined as a macro. */ -#define __need_FILE #include #undef __need_FILE -static inline FILE * +static FILE * orig_fopen (const char *filename, const char *mode) { return fopen (filename, mode); } /* Specification. */ -#include +/* Write "stdio.h" here, not , otherwise OSF/1 5.1 DTK cc eliminates + this include because of the preliminary #include above. */ +#include "stdio.h" #include #include