Define VERSION in framework.h

master
pabr 2018-03-27 13:31:48 +02:00
rodzic fe8771b8ec
commit 031a7a7a51
3 zmienionych plików z 8 dodań i 8 usunięć

Wyświetl plik

@ -1042,10 +1042,6 @@ void usage(const char *name, FILE *f, int c, const char *info=NULL) {
exit(c);
}
#ifndef VERSION
#define VERSION "undefined"
#endif
int main(int argc, const char *argv[]) {
config cfg;

Wyświetl plik

@ -211,10 +211,6 @@ void usage(const char *name, FILE *f, int c, const char *info=NULL) {
exit(c);
}
#ifndef VERSION
#define VERSION "undefined"
#endif
int main(int argc, char *argv[]) {
config cfg;

Wyświetl plik

@ -1,11 +1,19 @@
// This file is part of LeanSDR (c) 2018 <pabr@pabr.org>.
// See the toplevel README for more information.
#ifndef LEANSDR_FRAMEWORK_H
#define LEANSDR_FRAMEWORK_H
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <math.h>
#ifndef VERSION
#define VERSION "undefined"
#endif
namespace leansdr {
void fatal(const char *s) { perror(s); exit(1); }