[Kst] extragear/graphics/kst/src/datasources/planck
George Staikos
staikos at kde.org
Tue Aug 1 00:13:28 CEST 2006
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);
More information about the Kst
mailing list