Commit 2bf23ea8 by Jamie Madill Committed by Commit Bot

util: Always specify default visibility on exports.

This fixes undefined behaviour with CFI. Bug: chromium:1015810 Bug: angleproject:3162 Change-Id: I58cfb78adabbff05e5b4560dfd70b190411fa26d Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1869303Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent 0cb09633
...@@ -16,11 +16,7 @@ ...@@ -16,11 +16,7 @@
# define ANGLE_UTIL_EXPORT __declspec(dllimport) # define ANGLE_UTIL_EXPORT __declspec(dllimport)
# endif # endif
# elif defined(__GNUC__) # elif defined(__GNUC__)
# if defined(LIBANGLE_UTIL_IMPLEMENTATION) # define ANGLE_UTIL_EXPORT __attribute__((visibility("default")))
# define ANGLE_UTIL_EXPORT __attribute__((visibility("default")))
# else
# define ANGLE_UTIL_EXPORT
# endif
# else # else
# define ANGLE_UTIL_EXPORT # define ANGLE_UTIL_EXPORT
# endif # endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment