Browse Source

Add compatibility fix for MinGW

tags/v1.1
Bernhard Fröhlich 8 months ago
parent
commit
b145dd718a
Signed by: Bernhard Froehlich <decke@bluelife.at> GPG Key ID: 4DD88C3F9F3B8333
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      drmdecrypt.c

+ 6
- 0
drmdecrypt.c View File

@@ -22,6 +22,12 @@
22 22
 #include "trace.h"
23 23
 #include "buffer.h"
24 24
 
25
+/* MinGW compatibility */
26
+#if defined(_WIN32) || defined(_WIN64)
27
+#define S_IRGRP (S_IRUSR >> 3)
28
+#define S_IROTH (S_IRGRP >> 3)
29
+#endif
30
+
25 31
 /* Helper macros */
26 32
 #define STR_HELPER(x) #x
27 33
 #define STR(x) STR_HELPER(x)

Loading…
Cancel
Save