core, examples: fix rollback mistake with HAVE_SQLITE3 and core build

This commit is contained in:
Gabriel Ferreira
2022-05-15 00:12:25 -03:00
parent 0097a0b756
commit 215f83f9ec
2 changed files with 3 additions and 2 deletions

View File

@@ -94,7 +94,7 @@ int main (int argc, char *argv[]) {
return -1;
}
#ifndef STATS_HAS_SQLITE3
#ifndef HAVE_SQLITE3
if (format == "db") {
NS_LOG_ERROR ("sqlite support not compiled in.");
return -1;
@@ -300,7 +300,7 @@ int main (int argc, char *argv[]) {
NS_LOG_INFO ("Creating omnet formatted data output.");
output = CreateObject<OmnetDataOutput>();
} else if (format == "db") {
#ifdef STATS_HAS_SQLITE3
#ifdef HAVE_SQLITE3
NS_LOG_INFO ("Creating sqlite formatted data output.");
output = CreateObject<SqliteDataOutput>();
#endif