浏览代码

Merge branch 'h-s-c-stb_dxt_static' into dev

Fabian Giesen 8 年之前
父节点
当前提交
7a6251689f
共有 1 个文件被更改,包括 8 次插入2 次删除
  1. 8 2
      stb_dxt.h

+ 8 - 2
stb_dxt.h

@@ -38,8 +38,14 @@
 extern "C" {
 extern "C" {
 #endif
 #endif
 
 
-void stb_compress_dxt_block(unsigned char *dest, const unsigned char *src_rgba_four_bytes_per_pixel, int alpha, int mode);
-void stb_compress_bc5_block(unsigned char *dest, const unsigned char *src_rg_two_byte_per_pixel);
+#ifdef STB_DXT_STATIC
+#define STBDDEF static
+#else
+#define STBDDEF extern
+#endif
+
+STBDDEF void stb_compress_dxt_block(unsigned char *dest, const unsigned char *src_rgba_four_bytes_per_pixel, int alpha, int mode);
+STBDDEF void stb_compress_bc5_block(unsigned char *dest, const unsigned char *src_rg_two_byte_per_pixel);
 
 
 #ifdef __cplusplus
 #ifdef __cplusplus
 }
 }