Browse Source

cover DWORD compatibility with Windows headers

richarddobson 1 month ago
parent
commit
f1012d7d12
1 changed files with 2 additions and 1 deletions
  1. 2 1
      dev/externals/include/portsf.h

+ 2 - 1
dev/externals/include/portsf.h

@@ -53,9 +53,10 @@ OTHER DEALINGS IN THE SOFTWARE.
 extern "C" {    
 #endif     
 /* compatible with <windows.h> */
+#ifndef DWORD
 typedef unsigned MYLONG DWORD;
 typedef unsigned short WORD;
-
+#endif
 /* NB: AIFF spec always illustrates chunksize as (signed) long; 
    even though nFrames is always unsigned long!
    So we make everything DWORD here.