[ismrmrd] 28/177: Add compilers flags for GNU and fixed an include

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Jan 14 20:01:58 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to annotated tag v1.1.0.beta.1
in repository ismrmrd.

commit 9552ceea1d87d32306f3ab3baf9a464144f81e47
Author: Souheil Inati <souheil.inati at nih.gov>
Date:   Thu Aug 28 21:44:06 2014 -0400

    Add compilers flags for GNU and fixed an include
---
 CMakeLists.txt | 3 +++
 ismrmrd.h      | 2 ++
 2 files changed, 5 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index d848309..7cd6a95 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -24,6 +24,9 @@ if (WIN32)
     set(CMAKE_SHARED_LINKER_FLAGS_DEBUG "/debug /INCREMENTAL:NO")
     set(CMAKE_STATIC_LINKER_FLAGS_DEBUG "/debug /INCREMENTAL:NO")
     set(CMAKE_MODULE_LINKER_FLAGS_DEBUG "/debug /INCREMENTAL:NO")
+else (WIN32)
+    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
+    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
 endif (WIN32)
 
 # required packages for main library
diff --git a/ismrmrd.h b/ismrmrd.h
index 4df6931..509512f 100644
--- a/ismrmrd.h
+++ b/ismrmrd.h
@@ -30,12 +30,14 @@ typedef unsigned __int64 uint64_t;
 typedef std::complex<float> complex_float_t;
 typedef std::complex<double> complex_double_t;
 #include <vector>
+#include <cstring>
 #else /* C99 compiler */
 #include <stdint.h>
 #include <complex.h>
 #include <stdbool.h>
 typedef float complex complex_float_t;
 typedef double complex complex_double_t;
+#include <string.h>
 #endif /* __cplusplus */
 
 #pragma pack(push, 2) /* Use 2 byte alignment */

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/ismrmrd.git



More information about the debian-science-commits mailing list