commit | ddcbca7daeee552f003063cb3f538cc10ae1bbc6 | [log] [tgz] |
---|---|---|
author | Rich Lane <rlane@bigswitch.com> | Mon Mar 24 09:17:44 2014 -0700 |
committer | Rich Lane <rlane@bigswitch.com> | Mon Mar 24 09:17:44 2014 -0700 |
tree | af878fc23a1d9729f06636291a70537c63e08490 | |
parent | f1710d16c82fa792f5a695b355f44877743f584e [diff] |
loci: fix compilation with GCC <= 4.4 The __builtin_unreachable macro was introduced in GCC 4.5.
diff --git a/c_gen/templates/loci_int.h b/c_gen/templates/loci_int.h index 01ad4a8..c57371a 100644 --- a/c_gen/templates/loci_int.h +++ b/c_gen/templates/loci_int.h
@@ -46,7 +46,7 @@ #include <loci/loci.h> -#ifdef __GNUC__ +#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5) #define UNREACHABLE() __builtin_unreachable() #else #define UNREACHABLE()