Permalink
Browse files

quick fixes for win32

  • Loading branch information...
1 parent 0818052 commit fe4e1b9fe730588ad1180d48aa2ec7742f1cea7d Jimmy Zhuo committed Sep 22, 2011
Showing with 6 additions and 6 deletions.
  1. +2 −0 src/platform/win32/entropy.c
  2. +2 −2 src/platform/win32/file.c
  3. +2 −4 src/platform/win32/io.c
@@ -21,6 +21,8 @@ Get some entropy from the system.
*/
#include "parrot/parrot.h"
+
+#include<Windows.h>
#include <Wincrypt.h>
/* HEADERIZER HFILE: none */
@@ -24,10 +24,10 @@ This file implements OS-specific file functions for Win32 platforms.
# endif
#endif
-#include <tchar.h>
-#include <direct.h>
#include "parrot/parrot.h"
+#include<Windows.h>
+
#define THROW(msg) Parrot_ex_throw_from_c_args(interp, NULL, \
EXCEPTION_EXTERNAL_ERROR, "%s failed: %Ss", (msg), \
Parrot_platform_strerror(interp, GetLastError()))
View
@@ -24,6 +24,8 @@ Win32 System Programming, 2nd Edition.
#include "parrot/parrot.h"
#include "../../io/io_private.h"
+#include<Windows.h>
+
/* HEADERIZER HFILE: none */
/* HEADERIZER BEGIN: static */
@@ -48,10 +50,6 @@ static void convert_flags_to_win32(
/* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */
/* HEADERIZER END: static */
-#include <tchar.h>
-
-#define PIO_TRACE 0
-
/*
=item C<static void convert_flags_to_win32(INTVAL flags, DWORD * fdwAccess,

0 comments on commit fe4e1b9

Please sign in to comment.