Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dll.c « dlltest « samples « mingw « winsup - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 257b1b8ff671f93c043ce6f9450982228803e335 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * Source code of the functions inside our test DLL. Note that DllMain is
 * not required (it will be provided by the stub in libmingw32.a).
 */

#if 0
#include <windows.h>
#endif

int Add (int x, int y)
{
	printf ("In add!\nx = %d\ny = %d\n", x, y);
	return (x + y);
}


double __attribute__((stdcall)) Sub (double x, double y) 
{
	printf ("In sub!\nx = %f\ny = %f\n", x, y);
	return (x - y);
}