1 #include<stdio.h> 2 3 #ifdef _WIN32 4 #define DO_IMPORT __declspec(dllimport) 5 #else 6 #define DO_IMPORT 7 #endif 8 9 DO_IMPORT int foo(void); 10 main(void)11 int main(void) { 12 printf("This is text.\n"); 13 return foo(); 14 } 15