[pytango] 288/483: fix compilation error with numpy constant

Sandor Bodo-Merle sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:14:51 UTC 2017


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

sbodomerle-guest pushed a commit to annotated tag bliss_8.10
in repository pytango.

commit 2505444a8623e76945113d4c6a84203411a3ba05
Author: tiagocoutinho <tiagocoutinho at 4e9c00fd-8f2e-0410-aa12-93ce3db5e235>
Date:   Wed Nov 6 07:55:54 2013 +0000

    fix compilation error with numpy constant
    
    git-svn-id: http://svn.code.sf.net/p/tango-cs/code/bindings/PyTango/trunk@24099 4e9c00fd-8f2e-0410-aa12-93ce3db5e235
---
 src/boost/cpp/constants.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/boost/cpp/constants.cpp b/src/boost/cpp/constants.cpp
index f50b87f..facc382 100644
--- a/src/boost/cpp/constants.cpp
+++ b/src/boost/cpp/constants.cpp
@@ -24,6 +24,8 @@
 #include "precompiled_header.hpp"
 #include <tango.h>
 
+#define TOSTRING(s) #s
+
 using namespace boost::python;
 
 long TANGO_VERSION_HEX;
@@ -44,7 +46,7 @@ void export_constants()
 #endif
 
 #ifdef PYTANGO_NUMPY_VERSION
-    consts_scope.attr("NUMPY_VERSION") = PYTANGO_NUMPY_VERSION;
+    consts_scope.attr("NUMPY_VERSION") = TOSTRING(PYTANGO_NUMPY_VERSION);
 #else
     consts_scope.attr("NUMPY_VERSION") = "0.0.0";
 #endif

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



More information about the debian-science-commits mailing list