github.com/0xKiwi/rules_go@v0.24.3/tests/legacy/examples/cgo/cc_dependency/c_version.c (about)

     1  #include <stdio.h>
     2  
     3  #include "tests/legacy/examples/cgo/cc_dependency/c_version.h"
     4  
     5  void PrintCVersion() {
     6  #ifdef __STDC__
     7  # ifdef __STDC_VERSION__
     8    printf("C version: %ld\n", __STDC_VERSION__);
     9  # else
    10    printf("C version: C89\n");
    11  # endif
    12  #else
    13    printf("C version: maybe K&R\n");
    14  #endif
    15  }