commit | 5916d54ebeb1c5dbb30111008c629274c7eea3af | [log] [tgz] |
---|---|---|
author | Matt Wachowski <mattwach@google.com> | Wed Aug 15 16:30:35 2018 -0700 |
committer | Lingfeng Yang <lfy@google.com> | Fri Sep 21 11:46:13 2018 -0700 |
tree | 6de20110fab84d66a6bddb01c934e3b578a552d7 | |
parent | f270f58f89e0fbfb42885513521e5f25687a9e3a [diff] |
Partially revert ag/4742391. Needed to fix https://android-build.googleplex.com/builds/quarterdeck?branch=git_ics-mr1-emu-dev&target=sdk_x86-sdk&lkgb=4951371&fkbb=4954575 It appears that some compiler setups do not accept the C99 syntax Bug: b/80194417 Test: Recompile Change-Id: Ica21f2dc24a526358e9ae904fba55e1aa84bc6c8
diff --git a/system/egl/egl.cpp b/system/egl/egl.cpp index ecfddb6..47742f9 100644 --- a/system/egl/egl.cpp +++ b/system/egl/egl.cpp
@@ -827,9 +827,10 @@ // ---------------------------------------------------------------------------- +// Note: C99 syntax was tried here but does not work for all compilers. static EGLClient_eglInterface s_eglIface = { - .getThreadInfo = getEGLThreadInfo, - .getGLString = getGLString, + getThreadInfo: getEGLThreadInfo, + getGLString: getGLString, }; #define DBG_FUNC DBG("%s\n", __FUNCTION__)