浏览代码

update def of POS64 for linux variants

richarddobson 1 月之前
父节点
当前提交
f66dd5ce71
共有 2 个文件被更改,包括 4 次插入2 次删除
  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 REVWBYTES(t)    ( (((t)&0xff) << 8) | (((t)>>8) &0xff) )
 #define TAG(a,b,c,d)    ( ((a)<<24) | ((b)<<16) | ((c)<<8) | (d) )
 #define TAG(a,b,c,d)    ( ((a)<<24) | ((b)<<16) | ((c)<<8) | (d) )
 
 
-#ifdef linux
+//#ifdef linux
+#ifdef __GLIBC__
 #define POS64(x) (x.__pos)
 #define POS64(x) (x.__pos)
 #else
 #else
 #define POS64(x) (x)
 #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);
 int strnicmp(const char *a, const char *b, const int length);
 #endif
 #endif
 
 
-#ifdef linux
+//#ifdef linux
+#ifdef __GLIBC__
 #define POS64(x) (x.__pos)
 #define POS64(x) (x.__pos)
 #else
 #else
 #define POS64(x) (x)
 #define POS64(x) (x)