Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. gcc -dM -E - < /dev/null
  2.  
  3. bob@bob-fedora:~/trunk/software$ gcc --version
  4. gcc (GCC) 4.7.2 20121109 (Red Hat 4.7.2-8)
  5. Copyright (C) 2012 Free Software Foundation, Inc.
  6. This is free software; see the source for copying conditions. There is NO
  7. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8.  
  9. bob@bob-fedora:~/trunk/software$ gcc -std=gnu11 -dM -E - < /dev/null | grep STDC
  10. #define __STDC_HOSTED__ 1
  11. #define __STDC_UTF_16__ 1
  12. #define __STDC_VERSION__ 201112L
  13. #define __GNUC_STDC_INLINE__ 1
  14. #define __STDC_UTF_32__ 1
  15. #define __STDC__ 1
  16.  
  17. #ifdef __STDC_NO_VLA__
  18. #error Your compiler does not support VLAs! Please use a supported compiler.
  19. #endif
  20.  
  21. #ifndef __STDC_NO_VLA__
  22. // code using variable length arrays
  23. #else
  24. // fallback code for when they are not supported
  25. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement