[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/graphics/kst/src/datasources/planck
From: George Staikos <staikos () kde ! org>
Date: 2006-07-31 22:13:28
Message-ID: 1154384008.801014.25778.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 568366 by staikos:
keep it building with older piolibs
M +8 -0 planckobj.cpp
--- trunk/extragear/graphics/kst/src/datasources/planck/planckobj.cpp #568365:568366
@@ -63,7 +63,11 @@
char range[128];
Planck::ObjectGroup *g = findGroup(_group);
assert(g);
+#ifdef PIOLONG_FMT
snprintf(range, 127, "Begin=" PIOLONG_FMT "\nEnd=" PIOLONG_FMT, *g->firstIndex, \
*g->firstIndex); +#else
+ snprintf(range, 127, "Begin=%lld\nEnd=%lld", *g->firstIndex, *g->firstIndex);
+#endif
long n = PIORead_1(const_cast<char*>("TIMES_OF_SAMPLES"), \
const_cast<char*>("Written"), const_cast<char*>("PIODOUBLE"), range, &g->_group, \
&obj, &MyData, &MyDataFlag);
@@ -84,7 +88,11 @@
PIOObject *obj = 0L;
char range[128];
long n;
+#ifdef PIOLONG_FMT
snprintf(range, 127, "Begin=" PIOLONG_FMT "\nEnd=" PIOLONG_FMT, idx, idx);
+#else
+ snprintf(range, 127, "Begin=%lld\nEnd=%lld", idx, idx);
+#endif
double buf[1];
Planck::ObjectGroup *g = findGroup(_group);
assert(g);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic