Skip to content

Commit

Permalink
Avoid re-define of O_BINARY on Windows
Browse files Browse the repository at this point in the history
(Fixes #788)
  • Loading branch information
Nightwalker-87 committed Apr 8, 2020
1 parent 59c5cfd commit 9f2cad2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@
#include "stlink/mmap.h"
#include "stlink/logging.h"

#ifndef _WIN32
#define O_BINARY 0 //! @todo get rid of this OH MY (@xor-gate)
#ifdef _WIN32
#ifndef O_BINARY
#define O_BINARY 0
#endif
#endif

#ifdef _MSC_VER
#define __attribute__(x)
#endif
Expand Down

0 comments on commit 9f2cad2

Please sign in to comment.