]> www.ginac.de Git - ginac.git/blobdiff - ginac/parser/default_reader.tpl
Don't try to tie the library version to the package version number.
[ginac.git] / ginac / parser / default_reader.tpl
index e65802a439c6b866a79103c3e6dfd77e398da512..006fb908c28402f2d61fa5cacdee904788a091b7 100644 (file)
@@ -19,6 +19,13 @@ COMMENT a part of GiNaC parser -- construct functions from a byte stream.
 #include "power.h"
 #include "operators.h"
 #include "inifcns.h"
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#ifdef HAVE_STDINT_H
+#include <stdint.h> // for uintptr_t
+#endif
 
 namespace GiNaC
 {
@@ -52,7 +59,7 @@ static reader_func encode_serial_as_reader_func(unsigned serial)
 {
        uintptr_t u = (uintptr_t)serial;
        u = (u << 1) | (uintptr_t)1;
-       reader_func ptr = reinterpret_cast<reader_func>((void *)u);
+       reader_func ptr = (reader_func)((void *)u);
        return ptr;
 }