win32.c
changeset 3341 b8febc9509d7
parent 3340 eb5021cb6639
child 3394 78963d9c1022
--- a/win32.c	Sun Mar 26 21:13:16 2006 +0000
+++ b/win32.c	Sun Mar 26 21:15:09 2006 +0000
@@ -62,11 +62,6 @@
 }
 
 #ifdef _MSC_VER
-#	ifdef _M_AMD64
-void* _get_save_esp(void);
-uint64 _rdtsc(void);
-#	endif
-
 static const char *_exception_string;
 #endif
 
@@ -594,6 +589,7 @@
 static void Win32InitializeExceptions(void)
 {
 #ifdef _M_AMD64
+	extern void *_get_save_esp(void);
 	_safe_esp = _get_save_esp();
 #else
 	_asm {
@@ -603,7 +599,7 @@
 
 	SetUnhandledExceptionFilter(ExceptionHandler);
 }
-#endif
+#endif /* _MSC_VER */
 
 static char *_fios_path;
 static char *_fios_save_path;
@@ -1057,17 +1053,6 @@
 	return n;
 }
 
-
-#if defined(_MSC_VER) && !defined(_M_AMD64)
-uint64 _declspec(naked) _rdtsc(void)
-{
-	_asm {
-		rdtsc
-		ret
-	}
-}
-#endif
-
 void CreateConsole(void)
 {
 	HANDLE hand;