projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moving the Windows-specific includes into the Windows-specific header file
[freeglut]
/
src
/
mswin
/
freeglut_main_mswin.c
diff --git
a/src/mswin/freeglut_main_mswin.c
b/src/mswin/freeglut_main_mswin.c
index
b04e9e0
..
be48b23
100644
(file)
--- a/
src/mswin/freeglut_main_mswin.c
+++ b/
src/mswin/freeglut_main_mswin.c
@@
-108,6
+108,16
@@
void fgPlatformDisplayWindow ( SFG_Window *window )
}
\r
\r
\r
}
\r
\r
\r
+unsigned long fgPlatformSystemTime ( void )
\r
+{
\r
+#if defined(_WIN32_WCE)
\r
+ return GetTickCount();
\r
+#else
\r
+ return timeGetTime();
\r
+#endif
\r
+}
\r
+
\r
+
\r
void fgPlatformSleepForEvents( long msec )
\r
{
\r
MsgWaitForMultipleObjects( 0, NULL, FALSE, msec, QS_ALLINPUT );
\r
void fgPlatformSleepForEvents( long msec )
\r
{
\r
MsgWaitForMultipleObjects( 0, NULL, FALSE, msec, QS_ALLINPUT );
\r