Skip to content

Commit

Permalink
Cleanup macro headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolf3s committed Nov 20, 2023
1 parent b62d007 commit 3caf603
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion include/libsmb2-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "config.h"
#endif

#if defined(ESP_PLATFORM) || defined(PICO_PLATFORM) || defined(__APPLE__) || defined(HAVE_TIME_H)
#if defined(HAVE_TIME_H)
/* We need this for time_t */
#include <time.h>
#endif
Expand Down
2 changes: 1 addition & 1 deletion lib/libsmb2.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
#include <time.h>
#endif

#if defined(HAVE_FCNTL_H) || defined(_MSC_VER)
#if defined(HAVE_FCNTL_H)
#include <fcntl.h>
#endif

Expand Down
6 changes: 3 additions & 3 deletions lib/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include <netinet/in.h>
#endif

#if defined(HAVE_SYS_POLL_H) || defined(ESP_PLATFORM)
#if defined(HAVE_SYS_POLL_H)
#include <sys/poll.h>
#elif defined(HAVE_POLL_H) || defined(_WINDOWS)
#include <poll.h>
Expand Down Expand Up @@ -72,11 +72,11 @@
#include "portable-endian.h"
#include <errno.h>

#if defined(HAVE_FCNTL_H) || defined(_MSC_VER)
#if defined(HAVE_FCNTL_H)
#include <fcntl.h>
#endif

#if defined(HAVE_SYS_SOCKET_H) || defined(_WINDOWS)
#if defined(HAVE_SYS_SOCKET_H) || defined(_WINDOWS)
#include <sys/socket.h>
#endif

Expand Down
2 changes: 1 addition & 1 deletion lib/sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

#include <errno.h>

#if defined(HAVE_SYS_POLL_H) || defined(ESP_PLATFORM)
#if defined(HAVE_SYS_POLL_H)
#include <sys/poll.h>
#elif defined(HAVE_POLL_H) || defined(_WINDOWS)
#include <poll.h>
Expand Down

0 comments on commit 3caf603

Please sign in to comment.