~ubuntu-branches/ubuntu/quantal/nspr/quantal-security

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/pr/src/misc/prsystem.c

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2009-08-10 11:34:26 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20090810113426-3uv4diflrkcbdimm
Tags: 4.8-0ubuntu1
* New upstream release: 4.8 (LP: #387812)
* adjust patches to changed upstreanm codebase
  - update debian/patches/99_configure.patch
* update shlibs symbols to include new API elements
  - update debian/libnspr4-0d.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
226
226
 
227
227
    GetSystemInfo( &info );
228
228
    numCpus = info.dwNumberOfProcessors;
229
 
#elif defined(XP_MAC)
230
 
/* Hard-code the number of processors to 1 on the Mac
231
 
** MacOS/9 will always be 1. The MPProcessors() call is for
232
 
** MacOS/X, when issued. Leave it commented out for now. */
233
 
/*  numCpus = MPProcessors(); */
234
 
    numCpus = 1;
235
229
#elif defined(BEOS)
236
230
    system_info sysInfo;
237
231
 
313
307
 
314
308
    /* Try to use the newer GlobalMemoryStatusEx API for Windows 2000+. */
315
309
    GlobalMemoryStatusExFn globalMemory = (GlobalMemoryStatusExFn) NULL;
316
 
    HMODULE module = GetModuleHandle("kernel32.dll");
 
310
    HMODULE module = GetModuleHandleW(L"kernel32.dll");
317
311
 
318
312
    if (module) {
319
313
        globalMemory = (GlobalMemoryStatusExFn)GetProcAddress(module, "GlobalMemoryStatusEx");