Commit e0b72162 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Removed check for __cplusplus.

parent cd133867
......@@ -903,9 +903,7 @@ print_system_info()
#ifdef _OPENMP
fprintf(stderr, "OPENMP VERSION = %d\n", _OPENMP);
#endif
#if defined(__cplusplus)
fprintf(stderr, "__cplusplus = %ld\n", __cplusplus);
#endif
#if defined(__GNUC__)
fprintf(stderr, "GNUC VERSION = %d\n", __GNUC__);
#endif
......
#ifndef CDO_CDIWRAPPER_H
#define CDO_CDIWRAPPER_H
/* convert a CDI datatype to string */
// convert a CDI datatype to string
int datatype2str(int datatype, char *datatypestr);
int str2datatype(const char *datatypestr);
#ifdef __cplusplus
extern "C"
{
#endif
void cdiDefTableID(int tableID);
void gridGenXvals(int xsize, double xfirst, double xlast, double xinc, double *xvals);
void gridGenYvals(int gridtype, int ysize, double yfirst, double ylast, double yinc, double *yvals);
void gaussaw(double *pa, double *pw, size_t nlat);
#if defined(__cplusplus)
}
#endif
extern "C" void cdiDefTableID(int tableID);
extern "C" void gridGenXvals(int xsize, double xfirst, double xlast, double xinc, double *xvals);
extern "C" void gridGenYvals(int gridtype, int ysize, double yfirst, double ylast, double yinc, double *yvals);
#endif
......@@ -63,9 +63,7 @@ printFeatures(void)
const size_t memory_size = getMemorySize() / (1024 * 1024 * 1024);
if (memory_size > 0) fprintf(stderr, " %zuGB", memory_size);
fprintf(stderr, " %uthreads", std::thread::hardware_concurrency());
#ifdef __cplusplus
fprintf(stderr, " C++%d", (int) ((__cplusplus - (__cplusplus / 10000) * 10000) / 100));
#endif
#ifdef HAVE_CF_INTERFACE
fprintf(stderr, " Fortran");
#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