0
|
1 |
// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of the License "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
// e32\kernel\win32\x_entry.cpp
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
#include <kernel/kernel.h>
|
|
19 |
|
|
20 |
#ifdef __VC32__
|
|
21 |
#define __FLTUSED
|
|
22 |
#endif //__VC32__
|
|
23 |
|
|
24 |
// include the static data definitions
|
|
25 |
#include "win32crt.h"
|
|
26 |
|
|
27 |
// include compiler helpers
|
|
28 |
#include "x86hlp.inl"
|
|
29 |
|
|
30 |
GLREF_C TInt KernelModuleEntry(TInt);
|
|
31 |
|
|
32 |
extern "C"
|
|
33 |
int atexit(void (__cdecl *)(void))
|
|
34 |
{
|
|
35 |
return 0;
|
|
36 |
}
|
|
37 |
|
|
38 |
#ifdef __CW32__
|
|
39 |
|
|
40 |
#define WIN32_LEAN_AND_MEAN
|
|
41 |
#include <windows.h>
|
|
42 |
|
|
43 |
extern "C"
|
|
44 |
BOOL WINAPI _Win32DllMain(HINSTANCE, DWORD, LPVOID)
|
|
45 |
{
|
|
46 |
return 1;
|
|
47 |
}
|
|
48 |
#endif
|
|
49 |
|
|
50 |
extern "C"
|
|
51 |
EXPORT_C TInt _E32Dll(TInt aReason)
|
|
52 |
//
|
|
53 |
// EPOC Dll entrypoint for extension
|
|
54 |
// Call extension global constructors
|
|
55 |
//
|
|
56 |
{
|
|
57 |
if (aReason==KModuleEntryReasonExtensionInit1)
|
|
58 |
constructStatics();
|
|
59 |
return KernelModuleEntry(aReason);
|
|
60 |
}
|
|
61 |
|