You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by fa...@apache.org on 2008/02/21 04:54:56 UTC
svn commit: r629685 - /stdcxx/trunk/util/path.cpp
Author: faridz
Date: Wed Feb 20 19:54:52 2008
New Revision: 629685
URL: http://svn.apache.org/viewvc?rev=629685&view=rev
Log:
2008-02-21 Farid Zaripov <fa...@epam.com>
* util/path.cpp: Moved including of the system header files
on top of the file, to get _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED
macros defined for all included headers.
Modified:
stdcxx/trunk/util/path.cpp
Modified: stdcxx/trunk/util/path.cpp
URL: http://svn.apache.org/viewvc/stdcxx/trunk/util/path.cpp?rev=629685&r1=629684&r2=629685&view=diff
==============================================================================
--- stdcxx/trunk/util/path.cpp (original)
+++ stdcxx/trunk/util/path.cpp Wed Feb 20 19:54:52 2008
@@ -26,17 +26,6 @@
*
**************************************************************************/
-#include "path.h"
-
-#include "diagnostic.h" // for issue_diag()
-
-#include <cassert> // for assert()
-#include <cerrno> // for ERANGE
-#include <cstdlib> // for getenv()
-#include <cstring> // for strerror()
-#include <string> // for string
-
-
#ifndef _MSC_VER
# ifdef __linux__
// for symlink()
@@ -57,6 +46,17 @@
# include <sys/types.h>
# include <sys/stat.h> // for struct stat, stat()
#endif // _MSC_VER
+
+
+#include "path.h"
+
+#include "diagnostic.h" // for issue_diag()
+
+#include <cassert> // for assert()
+#include <cerrno> // for ERANGE
+#include <cstdlib> // for getenv()
+#include <cstring> // for strerror()
+#include <string> // for string
static char* get_cwd (char* s, std::size_t l)