X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib%2Fopendir.c;fp=tests%2Fopendir.c;h=480b96b7e5919c0e971bf22f92701387b999c17e;hb=refs%2Fheads%2Fupstream;hp=a135fd834a87688c1aac61a1822139f84021a58b;hpb=253a2fc5d9cd390d78a209f08af8ae31b13c44d8;p=platform%2Fupstream%2Fm4.git diff --git a/tests/opendir.c b/lib/opendir.c similarity index 89% rename from tests/opendir.c rename to lib/opendir.c index a135fd8..480b96b 100644 --- a/tests/opendir.c +++ b/lib/opendir.c @@ -1,5 +1,5 @@ /* Start reading the entries of a directory. - Copyright (C) 2006-2016 Free Software Foundation, Inc. + Copyright (C) 2006-2021 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 @@ -12,7 +12,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program. If not, see . */ + along with this program. If not, see . */ #include @@ -45,6 +45,16 @@ # include #endif +#if defined _WIN32 && ! defined __CYGWIN__ +/* Don't assume that UNICODE is not defined. */ +# undef WIN32_FIND_DATA +# define WIN32_FIND_DATA WIN32_FIND_DATAA +# undef GetFullPathName +# define GetFullPathName GetFullPathNameA +# undef FindFirstFile +# define FindFirstFile FindFirstFileA +#endif + DIR * opendir (const char *dir_name) {