~ubuntu-branches/ubuntu/intrepid/ecl/intrepid

« back to all changes in this revision

Viewing changes to src/gc/misc.c

  • Committer: Bazaar Package Importer
  • Author(s): Peter Van Eynde
  • Date: 2006-06-21 09:21:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060621092121-txz1f21lj0wh0f67
Tags: 0.9h-20060617-1
* New upstream version
* Updated standards version without real changes. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
# include <tchar.h>
35
35
#endif
36
36
 
 
37
#ifdef NONSTOP
 
38
# include <floss.h>
 
39
#endif
 
40
 
37
41
# ifdef THREADS
38
42
#   ifdef PCR
39
43
#     include "il/PCR_IL.h"
477
481
#if defined(GC_WIN32_THREADS) && !defined(GC_PTHREADS)
478
482
    if (!GC_is_initialized) {
479
483
      BOOL (WINAPI *pfn) (LPCRITICAL_SECTION, DWORD) = NULL;
480
 
      HMODULE hK32 = GetModuleHandle("kernel32.dll");
 
484
      HMODULE hK32 = GetModuleHandleA("kernel32.dll");
481
485
      if (hK32)
482
 
          (FARPROC) pfn = GetProcAddress(hK32,
483
 
                          "InitializeCriticalSectionAndSpinCount");
 
486
          pfn = (BOOL (WINAPI *) (LPCRITICAL_SECTION, DWORD))
 
487
                GetProcAddress (hK32,
 
488
                                "InitializeCriticalSectionAndSpinCount");
484
489
      if (pfn)
485
490
          pfn(&GC_allocate_ml, 4000);
486
491
      else