5252 |
like GCC to compile their C code. |
like GCC to compile their C code. |
5253 |
@end defmac |
@end defmac |
5254 |
|
|
5255 |
|
@defmac AC_C_RESTRICT |
5256 |
|
@acindex C_RESTRICT |
5257 |
|
@cvindex restrict |
5258 |
|
If the C compiler recognizes the @code{restrict} keyword, don't do anything. |
5259 |
|
If it recognizes only a variant spelling (@code{__restrict}, |
5260 |
|
@code{__restrict__}, or @code{_Restrict}), then define |
5261 |
|
@code{restrict} to that. |
5262 |
|
Otherwise, define @code{restrict} to be empty. |
5263 |
|
Thus, programs may simply use @code{restrict} as if every C compiler |
5264 |
|
supported it; for those that do not, the @file{Makefile} |
5265 |
|
or configuration header defines it away. |
5266 |
|
|
5267 |
|
Although support in C++ for the @code{restrict} keyword is not |
5268 |
|
required, several C++ compilers do accept the keyword. |
5269 |
|
This macro works for them, too. |
5270 |
|
@end defmac |
5271 |
|
|
5272 |
@defmac AC_C_VOLATILE |
@defmac AC_C_VOLATILE |
5273 |
@acindex{C_VOLATILE} |
@acindex{C_VOLATILE} |
5274 |
@cvindex volatile |
@cvindex volatile |