Skip to content
Snippets Groups Projects
Commit 4a3101d7 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Added cpp_lib.h

parent a03d4d78
No related branches found
No related tags found
1 merge request!225M214003/develop
......@@ -80,6 +80,7 @@ list( APPEND cdolib_src_files
constants.h
convert_units.cc
convert_units.h
cpp_lib.h
cthread_debug.cc
cthread_debug.h
custom_modules.cc
......
......@@ -82,6 +82,7 @@ libcdo_la_SOURCES = after_dvtrans.cc \
constants.h \
convert_units.cc \
convert_units.h \
cpp_lib.h \
cthread_debug.cc \
cthread_debug.h \
custom_modules.cc \
......
......@@ -36,6 +36,7 @@
#include <cdi.h>
#include "cpp_lib.h"
#include "cdo_getopt.h"
#include "cdo_rlimit.h"
#include <mpim_grid.h>
......@@ -176,6 +177,11 @@ cdo_version()
#ifdef CXX_VERSION
fprintf(fp, "CXX version : %s\n", CXX_VERSION);
#endif
fprintf(fp, "CXX library :");
#ifdef HAVE_RANGES_ZIP
fprintf(fp, " ranges_zip");
#endif
fprintf(fp, "\n");
#endif
#ifdef C_COMPILER
fprintf(fp, "C Compiler: %s\n", C_COMPILER);
......
......@@ -139,6 +139,7 @@ static std::map<std::string, std::pair<std::string, bool>> configMap
{ "has-threads", { "PTHREADS", have_threads } },
{ "has-wordexp", { "WORDEXP", have_wordexp } },
{ "has-hirlam_extensions", { "HIRLAM_EXTENSIONS", has_hirlam_extensions } } };
void
cdo_print_features(void)
{
......
/*
This file is part of CDO. CDO is a collection of Operators to manipulate and analyse Climate model Data.
Author: Uwe Schulzweida
*/
#ifndef CPP_LIB_H
#define CPP_LIB_H
#include <version>
#if __cpp_lib_ranges_zip >= 202110L
#define HAVE_RANGES_ZIP 1
#endif
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment