Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add h5test_wrapper.h to isolate gcc and g++ to compile _Float16 files… #221

Merged
merged 1 commit into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions c++/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ set (CPP_HDRS
${HDF5_CPP_SRC_SOURCE_DIR}/H5PropList.h
${HDF5_CPP_SRC_SOURCE_DIR}/H5StrType.h
${HDF5_CPP_SRC_SOURCE_DIR}/H5VarLenType.h
${HDF5_CPP_SRC_SOURCE_DIR}/H5Wrapper.h
)

if (BUILD_STATIC_LIBS)
Expand Down
21 changes: 21 additions & 0 deletions c++/src/H5Wrapper.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// C++ informative line for the emacs editor: -*- C++ -*-
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* All rights reserved. *
* *
* This file is part of HDF5. The full HDF5 copyright notice, including *
* terms governing use, modification, and redistribution, is contained in *
* the COPYING file, which can be found at the root of the source code *
* distribution tree, or in https://www.hdfgroup.org/licenses. *
* If you do not have access to either file, you may request a copy from *
* help@hdfgroup.org. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

#ifndef H5WRAPPER_H
#define H5WRAPPER_H

#if defined(__aarch64__) && defined(__GNUC__)
#define _Float16 __fp16
#endif

#endif /* H5WRAPPER_H */
1 change: 1 addition & 0 deletions c++/test/dsets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ using std::endl;
#include "H5Cpp.h" // C++ API header file
using namespace H5;

#include "H5Wrapper.h"
#include "h5test.h"
#include "h5cpputil.h" // C++ utilility header file

Expand Down
1 change: 1 addition & 0 deletions c++/test/h5cpputil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ using std::endl;
#include "H5Cpp.h" // C++ API header file
using namespace H5;

#include "H5Wrapper.h"
#include "h5test.h"
#include "h5cpputil.h" // C++ utilility header file

Expand Down
1 change: 1 addition & 0 deletions c++/test/h5cpputil.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#ifndef H5cpputil_H
#define H5cpputil_H

#include "H5Wrapper.h"
#include "h5test.h"

using namespace H5;
Expand Down
1 change: 1 addition & 0 deletions c++/test/tarray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ using std::endl;
#include "H5Cpp.h" // C++ API header file
using namespace H5;

#include "H5Wrapper.h"
#include "h5test.h"
#include "h5cpputil.h" // C++ utilility header file

Expand Down
1 change: 1 addition & 0 deletions c++/test/tattr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ using std::endl;
#include "H5Cpp.h" // C++ API header file
using namespace H5;

#include "H5Wrapper.h"
#include "h5test.h"
#include "h5cpputil.h" // C++ utilility header file

Expand Down
1 change: 1 addition & 0 deletions c++/test/tcompound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ using std::endl;
#include "H5Cpp.h" // C++ API header file
using namespace H5;

#include "H5Wrapper.h"
#include "h5test.h"
#include "h5cpputil.h" // C++ utilility header file

Expand Down
1 change: 1 addition & 0 deletions c++/test/tdspl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ using std::endl;
#include "H5Cpp.h" // C++ API header file
using namespace H5;

#include "H5Wrapper.h"
#include "h5test.h"
#include "h5cpputil.h" // C++ utilility header file

Expand Down
1 change: 1 addition & 0 deletions c++/test/testhdf5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ using std::endl;
#include "H5Cpp.h" // C++ API header file
using namespace H5;

#include "H5Wrapper.h"
#include "h5test.h"
#include "h5cpputil.h" // C++ utilility header file

Expand Down
1 change: 1 addition & 0 deletions c++/test/tfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ using std::endl;
#include "H5Cpp.h" // C++ API header file
using namespace H5;

#include "H5Wrapper.h"
#include "h5test.h"
#include "h5cpputil.h" // C++ utilility header file

Expand Down
1 change: 1 addition & 0 deletions c++/test/tfilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ using std::endl;
#include "H5Cpp.h" // C++ API header file
using namespace H5;

#include "H5Wrapper.h"
#include "h5test.h"
#include "h5cpputil.h" // C++ utilility header file

Expand Down
1 change: 1 addition & 0 deletions c++/test/th5s.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ using std::endl;
#include "H5Cpp.h" // C++ API header file
using namespace H5;

#include "H5Wrapper.h"
#include "h5test.h"
#include "h5cpputil.h" // C++ utilility header file
#include "H5srcdir.h" // srcdir querying header file
Expand Down
1 change: 1 addition & 0 deletions c++/test/titerate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ using std::endl;
#include "H5Cpp.h" // C++ API header file
using namespace H5;

#include "H5Wrapper.h"
#include "h5test.h"
#include "h5cpputil.h" // C++ utilility header file

Expand Down
1 change: 1 addition & 0 deletions c++/test/tlinks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ using std::endl;
#include "H5Cpp.h" // C++ API header file
using namespace H5;

#include "H5Wrapper.h"
#include "h5test.h"
#include "h5cpputil.h" // C++ utilility header file

Expand Down
1 change: 1 addition & 0 deletions c++/test/tobject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include "H5Cpp.h" // C++ API header file
using namespace H5;

#include "H5Wrapper.h"
#include "h5test.h"
#include "h5cpputil.h" // C++ utilility header file

Expand Down
1 change: 1 addition & 0 deletions c++/test/trefer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ using std::endl;
#include "H5Cpp.h" // C++ API header file
using namespace H5;

#include "H5Wrapper.h"
#include "h5test.h"
#include "h5cpputil.h" // C++ utilility header file

Expand Down
1 change: 1 addition & 0 deletions c++/test/ttypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ using std::endl;
#include "H5Cpp.h" // C++ API header file
using namespace H5;

#include "H5Wrapper.h"
#include "h5test.h"
#include "h5cpputil.h" // C++ utilility header file

Expand Down
1 change: 1 addition & 0 deletions c++/test/tvlstr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ using std::endl;
#include "H5Cpp.h" // C++ API header file
using namespace H5;

#include "H5Wrapper.h"
#include "h5test.h"
#include "h5cpputil.h" // C++ utilility header file

Expand Down
1 change: 1 addition & 0 deletions hl/c++/src/H5PacketTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* February 2004
*/

#include "H5Wrapper.h"
/* High-level library internal header file */
#include "H5HLprivate2.h"

Expand Down
2 changes: 1 addition & 1 deletion hl/c++/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ include $(top_srcdir)/config/commence.am
include $(top_srcdir)/config/lt_vers.am

# Include src directory
AM_CPPFLAGS+=-I$(top_srcdir)/src -I$(top_srcdir)/hl/src
AM_CPPFLAGS+=-I$(top_srcdir)/src -I$(top_srcdir)/c++/src -I$(top_srcdir)/hl/src

# This is our main target
lib_LTLIBRARIES=libhdf5_hl_cpp.la
Expand Down
1 change: 1 addition & 0 deletions hl/c++/test/ptableTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
/* ptableTest.cpp */

#include <iostream>
#include "H5Wrapper.h"
#include "ptableTest.h"

using namespace H5;
Expand Down
Loading