Compatibility compile fix

PiperOrigin-RevId: 257217445
This commit is contained in:
A. Unique TensorFlower 2019-07-09 10:06:08 -07:00 committed by TensorFlower Gardener
parent af8772fa69
commit b77b28d9db

View File

@ -15,6 +15,8 @@ limitations under the License.
#include "tensorflow/lite/delegates/gpu/gl/egl_context.h" #include "tensorflow/lite/delegates/gpu/gl/egl_context.h"
#include <cstring>
#include "tensorflow/lite/delegates/gpu/common/status.h" #include "tensorflow/lite/delegates/gpu/common/status.h"
#include "tensorflow/lite/delegates/gpu/gl/gl_call.h" #include "tensorflow/lite/delegates/gpu/gl/gl_call.h"
#include "tensorflow/lite/delegates/gpu/gl/gl_errors.h" #include "tensorflow/lite/delegates/gpu/gl/gl_errors.h"
@ -54,7 +56,7 @@ Status CreateContext(EGLDisplay display, EGLContext shared_context,
} }
bool HasExtension(EGLDisplay display, const char* name) { bool HasExtension(EGLDisplay display, const char* name) {
return strstr(eglQueryString(display, EGL_EXTENSIONS), name); return std::strstr(eglQueryString(display, EGL_EXTENSIONS), name);
} }
} // namespace } // namespace