| 1 | // Licensed to the .NET Foundation under one or more agreements. |
| 2 | // The .NET Foundation licenses this file to you under the MIT license. |
| 3 | // See the LICENSE file in the project root for more information. |
| 4 | |
| 5 | /*============================================================================= |
| 6 | ** |
| 7 | ** Source: testlib.c (filemapping_memmgt\getprocaddress\test2) |
| 8 | ** |
| 9 | ** Purpose: Create a simple library containing one function |
| 10 | ** to test GetProcAddress |
| 11 | ** |
| 12 | ** |
| 13 | **===========================================================================*/ |
| 14 | #include "pal.h" |
| 15 | |
| 16 | #if WIN32 |
| 17 | __declspec(dllexport) |
| 18 | #endif |
| 19 | |
| 20 | /** |
| 21 | * Simple function that returns i+1 |
| 22 | */ |
| 23 | int PALAPI SimpleFunction(int i) |
| 24 | { |
| 25 | return i+1; |
| 26 | } |
| 27 | |
| 28 | #if WIN32 |
| 29 | int PALAPI _DllMainCRTStartup(void *hinstDLL, int reason, void *lpvReserved) |
| 30 | { |
| 31 | return 1; |
| 32 | } |
| 33 | #endif |
| 34 | |