From: Roland Schulz Date: Thu, 31 Jan 2019 17:00:24 +0000 (-0800) Subject: Fix clfft build X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=commitdiff_plain;h=f11a798d3e9f9b4bfc16d31215bd5730606179bd;p=alexxy%2Fgromacs.git Fix clfft build Change-Id: I9df2470aa02644aa4058ccce986b543374f10664 --- diff --git a/src/external/clFFT/README.Gromacs b/src/external/clFFT/README.Gromacs index 7388b9422a..f15657b980 100644 --- a/src/external/clFFT/README.Gromacs +++ b/src/external/clFFT/README.Gromacs @@ -27,3 +27,6 @@ The version of this file from the git repo has been omitted. The file src/include/clFFT.version.h is copied from src/include/clFFT.version.h.in, substituting the version number placeholders with version 2.14.0 (as in the original build script), and defining a static build option. + +To compile everything as C++ the src/library/md5sum.c is renamed to cpp and +the extern "C" is removed from src/library/fft_binary_lookup.cpp. diff --git a/src/external/clFFT/src/library/fft_binary_lookup.cpp b/src/external/clFFT/src/library/fft_binary_lookup.cpp index ff386e2837..28b4d3e280 100644 --- a/src/external/clFFT/src/library/fft_binary_lookup.cpp +++ b/src/external/clFFT/src/library/fft_binary_lookup.cpp @@ -38,10 +38,7 @@ #include #endif -extern "C" -{ #include "md5sum.h" -} // size for clGetDeviceInfo queries #define SIZE 256