diff options
author | Sumeet Koli | 2018-06-18 14:46:14 +0530 |
---|---|---|
committer | Sumeet Koli | 2018-06-18 14:46:14 +0530 |
commit | 44ad9efa7e729739cde3103d8fc1e475efa2a923 (patch) | |
tree | f87994e13c9b4d0082f7a743f29e1eafc9690fa9 /Source/CMakeFiles/feature_tests.c | |
parent | 931fdbe021ec59e211ac13b807c18a9b2ca9a76c (diff) | |
download | OpenModelicaEmbedded-1-44ad9efa7e729739cde3103d8fc1e475efa2a923.tar.gz OpenModelicaEmbedded-1-44ad9efa7e729739cde3103d8fc1e475efa2a923.tar.bz2 OpenModelicaEmbedded-1-44ad9efa7e729739cde3103d8fc1e475efa2a923.zip |
Change in directory structure
Diffstat (limited to 'Source/CMakeFiles/feature_tests.c')
-rwxr-xr-x | Source/CMakeFiles/feature_tests.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Source/CMakeFiles/feature_tests.c b/Source/CMakeFiles/feature_tests.c new file mode 100755 index 0000000..6590dde --- /dev/null +++ b/Source/CMakeFiles/feature_tests.c @@ -0,0 +1,34 @@ + + const char features[] = {"\n" +"C_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 +"1" +#else +"0" +#endif +"c_function_prototypes\n" +"C_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L +"1" +#else +"0" +#endif +"c_restrict\n" +"C_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201000L +"1" +#else +"0" +#endif +"c_static_assert\n" +"C_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L +"1" +#else +"0" +#endif +"c_variadic_macros\n" + +}; + +int main(int argc, char** argv) { (void)argv; return features[argc]; } |