The R Project SVN R

Rev

Rev 84153 | Rev 84205 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 84153 Rev 84204
Line 59... Line 59...
59
Anonymous structures and C99 _Complex were not incorporated into C++
59
Anonymous structures and C99 _Complex were not incorporated into C++
60
standard.  While they are usually supported as compiler extensions, warnings
60
standard.  While they are usually supported as compiler extensions, warnings
61
are typically issued (-pedantic) by a C++ compiler.
61
are typically issued (-pedantic) by a C++ compiler.
62
*/
62
*/
63
 
63
 
-
 
64
#if defined(__GNUC__) && defined(__cplusplus)
-
 
65
# pragma GCC diagnostic push
-
 
66
# pragma GCC diagnostic ignored "-Wpedantic"
-
 
67
#endif
-
 
68
 
-
 
69
#if defined(__clang__) && defined(__cplusplus)
-
 
70
# pragma clang diagnostic push
-
 
71
# pragma clang diagnostic ignored "-Wgnu-anonymous-struct"
-
 
72
# pragma clang diagnostic ignored "-Wc99-extensions"
-
 
73
#endif
-
 
74
 
64
typedef union {
75
typedef union {
65
    struct {
76
    struct {
66
	double r;
77
	double r;
67
	double i;
78
	double i;
68
    };
79
    };
69
    double _Complex private_data_c;
80
    double _Complex private_data_c;
70
} Rcomplex;
81
} Rcomplex;
71
 
82
 
-
 
83
#if defined(__GNUC__) && defined(__cplusplus)
-
 
84
# pragma GCC diagnostic pop
-
 
85
#endif
-
 
86
 
-
 
87
#if defined(__clang__) && defined(__cplusplus)
-
 
88
# pragma clang diagnostic pop
-
 
89
#endif
-
 
90
 
72
# endif 
91
# endif 
73
 
92
 
74
#ifdef  __cplusplus
93
#ifdef  __cplusplus
75
}
94
}
76
#endif
95
#endif