ECC-688: move inline test

This commit is contained in:
Tiago Quintino 2018-05-18 16:34:35 +01:00
parent c6319be92e
commit 6f4ad74fcd
2 changed files with 9 additions and 1 deletions

View File

@ -45,6 +45,14 @@ check_symbol_exists( posix_memalign "stdlib.h" ECCODES_HAVE_POSIX_MEMALIGN )
check_symbol_exists( fmemopen "stdio.h" ECCODES_HAVE_FMEMOPEN )
check_symbol_exists( funopen "stdio.h" ECCODES_HAVE_FUNOPEN )
check_c_source_compiles(
" typedef int foo_t;
static inline foo_t static_foo(){return 0;}
foo_t foo(){return 0;}
int main(int argc, char *argv[]){return 0;}
" ECCODES_HAVE_C_INLINE )
###############################################################################
# some variables/options of this project

View File

@ -23,7 +23,7 @@
#define ECCODES_DEFINITION_PATH "@ECCODES_DEFINITION_PATH@"
#ifdef EC_HAVE_C_INLINE
#ifdef ECCODES_HAVE_C_INLINE
#define GRIB_INLINE inline
#endif