Skip to content

Commit

Permalink
Fixed include guard for module loading on Windows
Browse files Browse the repository at this point in the history
Ticket: None
Changelog: None
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
  • Loading branch information
larsewi committed May 3, 2024
1 parent d7d9252 commit 2d55bfc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif // HAVE_DLFCN_H

#if _WIN32
#elif defined(_WIN32)
#include <errhandlingapi.h>
#include <libloaderapi.h>
#endif // _WIN32
#endif

#include "logger.h"

Expand Down

0 comments on commit 2d55bfc

Please sign in to comment.