Fix #1315, fix #1317 - use #ifndef instead of #pragma once for compilers that do not support #pragma once

This commit is contained in:
Sergey Lyubka committed 2021-07-19 09:04:18 +01:00
1 parent 497b8027f5
commit 3982e065c8
3 files changed
+8 -3

No files matched your search

+4 -1
View File
@@ -14,7 +14,9 @@
//
// Alternatively, you can license this software under a commercial
// license, as set out in <https://www.cesanta.com/license>.
#pragma once
#ifndef MONGOOSE_H
#define MONGOOSE_H
#define MG_VERSION "7.3"
#ifdef __cplusplus
@@ -978,3 +980,4 @@ size_t mg_dns_decode_name(const uint8_t *, size_t, size_t, char *, size_t);
#ifdef __cplusplus
}
#endif
#endif // MONGOOSE_H