~ubuntu-branches/ubuntu/edgy/rxtx/edgy

« back to all changes in this revision

Viewing changes to src/init.cc

  • Committer: Bazaar Package Importer
  • Author(s): Mario Joussen
  • Date: 2002-03-06 00:50:09 UTC
  • Revision ID: james.westby@ubuntu.com-20020306005009-8myjehevn1eu3u78
Tags: upstream-1.5.9pre5
ImportĀ upstreamĀ versionĀ 1.5.9pre5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <windows.h> 
 
2
/*
 
3
extern "C" 
 
4
{ int WINAPI dll_entry (HANDLE handke, DWORD dword, void *var); };
 
5
int WINAPI dll_entry (HANDLE , DWORD dword, void *)
 
6
{ return 1; }
 
7
*/
 
8
#ifdef __CYGWIN32__
 
9
 
 
10
struct _reent *_impure_ptr;
 
11
extern struct _reent *__imp_reent_data;
 
12
#endif
 
13
 
 
14
extern "C"
 
15
{
 
16
  int WINAPI dll_entry (HANDLE h, DWORD reason, void *ptr);
 
17
};
 
18
 
 
19
int WINAPI dll_entry (HANDLE ,
 
20
                     DWORD reason,
 
21
                     void *)
 
22
{
 
23
#ifdef __CYGWIN32__
 
24
  _impure_ptr = __imp_reent_data;
 
25
#endif
 
26
 
 
27
  switch (reason)
 
28
    {
 
29
    case DLL_PROCESS_ATTACH:
 
30
      break;
 
31
    case DLL_PROCESS_DETACH:
 
32
      break;
 
33
    case DLL_THREAD_ATTACH:
 
34
      break;
 
35
    case DLL_THREAD_DETACH:
 
36
      break;
 
37
    }
 
38
  return 1;
 
39
}
 
40