Skip to content

Commit cfe06dd

Browse files
committed
clean: add header guards for private headers
1 parent d618253 commit cfe06dd

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

lib/misc/cache-ttl/private-lib-misc-cache-ttl.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
* IN THE SOFTWARE.
2323
*/
2424

25+
#if !defined(__MISC_CACHE_TTL_PRIVATE_LIB_MISC_CACHE_TTL__)
26+
#define __MISC_CACHE_TTL_PRIVATE_LIB_MISC_CACHE_TTL__
27+
2528
#define lwsl_cache lwsl_debug
2629
#define lwsl_hexdump_cache lwsl_hexdump_debug
2730

@@ -96,3 +99,6 @@ lws_cache_clear_matches(lws_dll2_owner_t *results_owner);
9699

97100
void
98101
lws_cache_schedule(struct lws_cache_ttl_lru *cache, sul_cb_t cb, lws_usec_t e);
102+
103+
#endif
104+

lib/misc/dlo/private-lib-drivers-display-dlo.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#if !defined(__MISC_DLO_PRIVATE_LIB_DRIVERS_DISPLAY_DLO__)
2+
#define __MISC_DLO_PRIVATE_LIB_DRIVERS_DISPLAY_DLO__
3+
14
enum {
25
MCUFO_MAGIC = 0,
36
MCUFO_FLAGS_VER = 4,
@@ -55,3 +58,5 @@ lws_lhp_ss_html_parse_from_lhp(lhp_ctx_t *lhp);
5558
void
5659
lws_lhp_image_dimensions_cb(lws_sorted_usec_list_t *sul);
5760

61+
#endif
62+

0 commit comments

Comments
 (0)