fixed pragma warnings when building with gcc.
[pwlib.git] / src / ptlib / msos / dllmain.cxx
blob35c075aa5d80a518f22d521a61a56160c4440481
1 /*
2 * dllmain.cxx
4 * DLL main entry point for PTLib.dll and PWLib.dll
6 * Portable Windows Library
8 * Copyright (c) 1993-1998 Equivalence Pty. Ltd.
10 * The contents of this file are subject to the Mozilla Public License
11 * Version 1.0 (the "License"); you may not use this file except in
12 * compliance with the License. You may obtain a copy of the License at
13 * http://www.mozilla.org/MPL/
15 * Software distributed under the License is distributed on an "AS IS"
16 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
17 * the License for the specific language governing rights and limitations
18 * under the License.
20 * The Original Code is Portable Windows Library.
22 * The Initial Developer of the Original Code is Equivalence Pty. Ltd.
24 * Portions are Copyright (C) 1993 Free Software Foundation, Inc.
25 * All Rights Reserved.
27 * Contributor(s): ______________________________________.
29 * $Log$
30 * Revision 1.3 2005/09/18 13:01:43 dominance
31 * fixed pragma warnings when building with gcc.
33 * Revision 1.2 2004/10/23 10:53:19 ykiryanov
34 * Added ifdef _WIN32_WCE for PocketPC 2003 SDK port
36 * Revision 1.1 1998/09/25 11:04:09 craigs
37 * Initial revision
41 #ifdef _MSC_VER
42 #pragma warning(disable:4201 4514)
43 #endif
45 #include <windows.h>
47 #ifndef _WIN32_WCE
48 HINSTANCE PDllInstance;
49 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID)
50 #else
51 HANDLE PDllInstance;
52 BOOL WINAPI DllMain(HANDLE hinstDLL, DWORD fdwReason, LPVOID)
53 #endif
55 if (fdwReason == DLL_PROCESS_ATTACH)
56 PDllInstance = hinstDLL;
57 return TRUE;