forked from GerhardHoffmann/DCLibraries
main (as entry point of both libraries) outputs version info.
This commit is contained in:
parent
26a4c128a5
commit
605d190dcb
28
src/main.cpp
28
src/main.cpp
@ -1,9 +1,25 @@
|
|||||||
#include <QCoreApplication>
|
|
||||||
#include "tslib.h"
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
#ifndef WIN32
|
||||||
{
|
|
||||||
QCoreApplication a(argc, argv);
|
|
||||||
|
|
||||||
return a.exec();
|
#undef _FORTIFY_SOURCE
|
||||||
|
|
||||||
|
#include <unistd.h> // _exit(0)
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
// Must define the interpreter to be the dynamic linker
|
||||||
|
#ifdef __LP64__
|
||||||
|
#error "__LP64__ not defined for PTU5"
|
||||||
|
#else
|
||||||
|
const char service_interp[] __attribute__((section(".interp"))) = "/lib/ld-linux-armhf.so.3";
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
int main(int argc, char *argv[]) {
|
||||||
|
(void)argc;
|
||||||
|
(void)argv;
|
||||||
|
|
||||||
|
printf("%s %s %s\n", APP_EXTENDED_VERSION, APP_BUILD_DATE, APP_BUILD_TIME);
|
||||||
|
_exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user