Skip to content

Commit

Permalink
Use #pragma once, because supported by gcc and all modern compilers
Browse files Browse the repository at this point in the history
instead of #ifdef DOTHFILE_H etc...
  • Loading branch information
geeksville committed Jun 23, 2024
1 parent 1c5cc64 commit 5a284f0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/DebugConfiguration.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#ifndef SYSLOG_H
#define SYSLOG_H
#pragma once

#include "configuration.h"

Expand Down Expand Up @@ -154,6 +153,4 @@ class Syslog
bool vlogf(uint16_t pri, const char *appName, const char *fmt, va_list args) __attribute__((format(printf, 3, 0)));
};

#endif // HAS_ETHERNET || HAS_WIFI

#endif // SYSLOG_H
#endif // HAS_ETHERNET || HAS_WIFI

0 comments on commit 5a284f0

Please sign in to comment.