dllbridge

Untitled

Apr 26th, 2026
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.60 KB | None | 0 0
  1.  
  2.  
  3. #include <stdio.h>
  4. #include <locale.h>
  5.  
  6.  
  7.  
  8.  
  9.  
  10. #ifdef __GNUC__
  11. ///////////////////////////////////////
  12. const char* foo()
  13. {
  14.    
  15.    
  16. return "Мой компилятор GCC";  
  17. }
  18. #endif
  19.  
  20.  
  21. #ifdef _MSC_VER
  22. ///////////////////////////////////////
  23. const char* foo()
  24. {
  25.    
  26.    
  27. return "Microsoft Visual Studio";  
  28. }
  29. #endif
  30.  
  31.  
  32. #ifdef __TINYC__
  33. ///////////////////////////////////////
  34. const char* foo()
  35. {
  36.    
  37.    
  38. return "Tiny C Compiler !!!";  
  39. }
  40. #endif
  41.  
  42. ////////////////////////////////////////
  43. int main()
  44. {
  45.  
  46.     setlocale(LC_ALL, "rus");  
  47.    
  48.     printf("%s", foo());
  49.    
  50.    
  51. return 0;
  52. }
  53.  
  54.  
  55.  
Advertisement
Add Comment
Please, Sign In to add comment