Skip to content
Permalink
Browse files

Add compatibility fix for MinGW

  • Loading branch information...
decke committed Aug 28, 2018
1 parent a046734 commit b145dd718a8e0d1a29f636e6d02b6a730f14c31e
Showing with 6 additions and 0 deletions.
  1. +6 −0 drmdecrypt.c
@@ -22,6 +22,12 @@
#include "trace.h"
#include "buffer.h"

/* MinGW compatibility */
#if defined(_WIN32) || defined(_WIN64)
#define S_IRGRP (S_IRUSR >> 3)
#define S_IROTH (S_IRGRP >> 3)
#endif

/* Helper macros */
#define STR_HELPER(x) #x
#define STR(x) STR_HELPER(x)

0 comments on commit b145dd7

Please sign in to comment.
You can’t perform that action at this time.