diff options
| author | Bert Belder <bertbelder@gmail.com> | 2011-01-18 00:22:36 +0100 |
|---|---|---|
| committer | Bert Belder <bertbelder@gmail.com> | 2011-01-18 04:58:11 +0100 |
| commit | e0f47be9d0d86a07faaf8eb74409592f2cdaecf3 (patch) | |
| tree | 3ef5e8f7c9127c34a50b6bfc6d039f65bd57fb28 /src/node_os.cc | |
| parent | 43d75952ffc01a5edab77f8b4a745ec54ba5f7c1 (diff) | |
| download | node-new-e0f47be9d0d86a07faaf8eb74409592f2cdaecf3.tar.gz | |
Clean up the way windows headers are included
Plus make inclusion order a little more consistent in general
Diffstat (limited to 'src/node_os.cc')
| -rw-r--r-- | src/node_os.cc | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/node_os.cc b/src/node_os.cc index 758648835e..1c98b04975 100644 --- a/src/node_os.cc +++ b/src/node_os.cc @@ -1,20 +1,22 @@ -#include <node_os.h> #include <node.h> -#include <v8.h> +#include <node_os.h> +#include <platform.h> -#include "platform.h" +#include <v8.h> #include <errno.h> #include <string.h> +#ifdef __MINGW32__ +# include <platform_win32.h> +# include <platform_win32_winsock.h> +#endif + #ifdef __POSIX__ # include <unistd.h> // gethostname, sysconf # include <sys/utsname.h> -#else // __MINGW32__ -# include <windows.h> // GetVersionEx -# include <winsock2.h> // gethostname -#endif // __MINGW32__ +#endif namespace node { |
