Project

General

Profile

Bug #3801 » feature_test.cc

Alexander Pyhalov, 2013-06-07 03:09 AM

 
1
#include <iostream>
2
//#include <sys/feature_tests.h>
3

    
4
int main ()
5
{
6
#if defined(_STDC_C99)
7
std::cout << "_STDC_C99\n";
8
#endif
9
#if defined (_XPG4)
10
std::cout <<"_XPG4\n"; 
11
#endif
12
#if defined (_XPG5)
13
std::cout <<"_XPG5\n"; 
14
#endif
15
#if defined (_XPG6)
16
std::cout <<"_XPG6\n"; 
17
#endif
18
#if defined(_XOPEN_SOURCE)
19
std::cout << "_XOPEN_SOURCE="<< _XOPEN_SOURCE<<"\n";
20
#endif
21

    
22
  return 0;
23
}
24

    
(2-2/3)