Ticket #50 (closed defect: fixed)
Patch to compile for WinCE
| Reported by: | bjornroche | Owned by: | gordon_gidluck |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | os-windows | Version: | |
| Keywords: | Windows CE | Cc: |
Description
All,
Attached is a small patch to make PA build on CE.
cheers,
-benny
-- Benny Prijono http://www.pjsip.org Index: src/os/win/pa_win_util.c =================================================================== --- src/os/win/pa_win_util.c (revision 1186) +++ src/os/win/pa_win_util.c (working copy) @@ -138,6 +138,10 @@
} else {
+#ifndef UNDER_CE
return timeGetTime() * .001;
+#else + return GetTickCount?() * .001; +#endif
}
}
Index: src/hostapi/wmme/pa_win_wmme.c =================================================================== --- src/hostapi/wmme/pa_win_wmme.c (revision 1186) +++ src/hostapi/wmme/pa_win_wmme.c (working copy) @@ -112,7 +112,9 @@
#include <math.h> #include <windows.h> #include <mmsystem.h>
+#ifndef UNDER_CE
#include <process.h>
+#endif
#include <assert.h> /* PLB20010422 - "memory.h" doesn't work on CodeWarrior? for PC. Thanks Mike Berry for the mod. */ #ifndef MWERKS
@@ -131,7 +133,9 @@
#include "pa_win_wmme.h"
-#if (defined(WIN32) && (defined(_MSC_VER) && (_MSC_VER >= 1200))) /* MSC version 6 and above */ +#if (defined(UNDER_CE)) +#pragma comment(lib, "Coredll.lib") +#elif (defined(WIN32) && (defined(_MSC_VER) && (_MSC_VER >= 1200))) /* MSC version 6 and above */
#pragma comment(lib, "winmm.lib") #endif
