Ticket #50 (closed defect: fixed)

Opened 17 months ago

Last modified 16 months ago

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

Change History

Changed 16 months ago by gordon_gidluck

  • owner changed from rossb to gordon_gidluck

Changed 16 months ago by gordon_gidluck

  • status changed from new to closed
  • resolution set to fixed

Changes made 05/04/2007. Committed to SVN (in revision 1197)

Changed 16 months ago by gordon_gidluck

Missed a hash mark # on the #elif . Benny caught the problem and I checked in the fix.

Note: See TracTickets for help on using tickets.