X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ftmpfile.c;h=c57e0e78856cad830899bb45bca619cddec343ac;hb=50901279d8e42ea4bccc2eef0a6b11e7c3dde4cf;hp=2a5bbc6a5ca36b836625f3d5b58161c633fe0710;hpb=2d4d7d9d00fe33b6f5291e00a30b6c1016775b74;p=gnulib.git diff --git a/lib/tmpfile.c b/lib/tmpfile.c index 2a5bbc6a5..c57e0e788 100644 --- a/lib/tmpfile.c +++ b/lib/tmpfile.c @@ -1,5 +1,5 @@ /* Create a temporary file. - Copyright (C) 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2007, 2009-2011 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 @@ -37,6 +37,9 @@ #include "tempname.h" #include "tmpdir.h" +/* PATH_MAX is guaranteed to be defined, because this replacement is only + used on native Windows. */ + /* On Windows, opening a file with _O_TEMPORARY has the effect of passing the FILE_FLAG_DELETE_ON_CLOSE flag to CreateFile(), which has the effect of deleting the file when it is closed - even when the program crashes.