Index: third_party/x86inc/x86inc.asm |
diff --git a/third_party/x86inc/x86inc.asm b/third_party/x86inc/x86inc.asm |
index fe7f3d2132ea3b39cbc78ebe83eab70f82c65d84..e4eaaccf8782b3767afb01a6a4bb91b977843f83 100644 |
--- a/third_party/x86inc/x86inc.asm |
+++ b/third_party/x86inc/x86inc.asm |
@@ -1013,6 +1013,27 @@ AVX_INSTR pfmul, 1, 0 |
%define PRIVATE |
%endif |
+; |
+; EXPORT %1 |
+; Designates a symbol as PRIVATE if EXPORT_SYMBOLS is not set. |
Ami GONE FROM CHROMIUM
2013/05/18 02:22:04
This doesn't seem very x86-specific (see file name
DaleCurtis
2013/05/23 23:43:23
Moved PRIVATE and EXPORT into a new media_export.i
|
+; |
+ |
+%macro EXPORT 1 |
+%ifdef EXPORT_SYMBOLS |
+global mangle(%1) |
+ |
+; Windows needs an additional export declaration. |
+%ifidn __OUTPUT_FORMAT__,win32 |
+export mangle(%1) |
+%elifidn __OUTPUT_FORMAT__,win64 |
+export mangle(%1) |
+%endif |
+ |
+%else |
+global mangle(%1) PRIVATE |
+%endif |
+%endmacro |
+ |
%endif ; CHROMIUM |
%endif ; MEDIA_BASE_SIMD_X86INC_ASM_ |