Commit 87906482 authored by Kenton Varda's avatar Kenton Varda

Also warn for GCC < 4.7.

parent 9a62fd23
...@@ -28,7 +28,11 @@ ...@@ -28,7 +28,11 @@
#ifdef __GNUC__ #ifdef __GNUC__
#ifndef __GXX_EXPERIMENTAL_CXX0X__ #ifndef __GXX_EXPERIMENTAL_CXX0X__
#warning Did you forget to enable C++11? Make sure to pass -std=gnu++11 to GCC. #warning "Did you forget to enable C++11? Make sure to pass -std=gnu++11 to GCC."
#endif
#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
#warning "Cap'n Proto requires at least GCC 4.7."
#endif #endif
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment