Browse Source

update def of POS64 for linux variants

richarddobson 1 month ago
parent
commit
f66dd5ce71
2 changed files with 4 additions and 2 deletions
  1. 2 1
      dev/externals/mctools/chxformat.c
  2. 2 1
      dev/externals/portsf/portsf.c

+ 2 - 1
dev/externals/mctools/chxformat.c

@@ -41,7 +41,8 @@ char* guidnames[] = {"PCM","PCM FLOAT","AMB PCM","AMB FLOAT"};
 #define REVWBYTES(t)    ( (((t)&0xff) << 8) | (((t)>>8) &0xff) )
 #define TAG(a,b,c,d)    ( ((a)<<24) | ((b)<<16) | ((c)<<8) | (d) )
 
-#ifdef linux
+//#ifdef linux
+#ifdef __GLIBC__
 #define POS64(x) (x.__pos)
 #else
 #define POS64(x) (x)

+ 2 - 1
dev/externals/portsf/portsf.c

@@ -90,7 +90,8 @@ int stricmp(const char *a, const char *b);
 int strnicmp(const char *a, const char *b, const int length);
 #endif
 
-#ifdef linux
+//#ifdef linux
+#ifdef __GLIBC__
 #define POS64(x) (x.__pos)
 #else
 #define POS64(x) (x)