1 #include <stdio.h> 2 3 #ifdef _WIN32 4 __declspec(dllexport) 5 #endif foo(void)6 void foo(void) 7 { 8 printf("foo()\n"); 9 } 10