Skip to content

Commit

Permalink
Merge pull request #23 from jsquyres/pr/fix-c11-disable-distcheck-war…
Browse files Browse the repository at this point in the history
…nings

Fix warnings in "make distcheck"
  • Loading branch information
jsquyres authored Jul 26, 2019
2 parents bbb9df0 + a513e65 commit 9f81d42
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ AC_DEFINE_UNQUOTED([FROOZLE_TEST_GIANT_COUNT_F],

dnl ----------------------------------------------------------------

AC_CONFIG_HEADER([include/mpi-config.h])
AC_CONFIG_HEADER([include/mpi.h])
AC_CONFIG_HEADER([include/froozle_config_fortran.h])

AC_OUTPUT([
Expand Down
1 change: 0 additions & 1 deletion include/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

include_HEADERS = \
mpi.h \
mpi-config.h \
mpif.h \
mpif-constants.h \
mpif-handles.h \
Expand Down
23 changes: 8 additions & 15 deletions include/mpi.h → include/mpi.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@

/***************************************************************/

#include "mpi-config.h"

/***************************************************************/

#ifndef FROOZLE_BUILDING
#define FROOZLE_BUILDING 0
#endif

// Substituted in by configure script
#define FROOZLE_HAVE_C11_GENERIC @FROOZLE_HAVE_C11_GENERIC@

/***************************************************************/

#if defined(c_plusplus) || defined(__cplusplus)
Expand Down Expand Up @@ -105,18 +104,12 @@ int MPI_Get_elements_x(const MPI_Status *status,
MPI_Count *count);


// This comes from mpi-config.h
#define FROOZLE_WANT_C11_GENERIC FROOZLE_HAVE_C11_GENERIC

// We don't want _Generic if we're building Froozle itself
#if FROOZLE_BUILDING
#undef FROOZLE_WANT_C11_GENERIC
// We don't want _Generic if we're building Froozle itself, or if we're in C++
#if FROOZLE_BUILDING || defined(c_plusplus) || defined(__cplusplus)
#define FROOZLE_WANT_C11_GENERIC 0
#endif

// We also don't want _Generic if we're in C++
#if defined(c_plusplus) || defined(__cplusplus)
#undef FROOZLE_WANT_C11_GENERIC
#elif FROOZLE_HAVE_C11_GENERIC
#define FROOZLE_WANT_C11_GENERIC 1
#else
#define FROOZLE_WANT_C11_GENERIC 0
#endif

Expand Down

0 comments on commit 9f81d42

Please sign in to comment.