From: Jason Ekstrand Date: Wed, 29 Apr 2015 21:30:22 +0000 (-0700) Subject: glsl/compiler: Move the error_no_memory stub to standalone_scaffolding.cpp X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cae8db6b7e149e111fb9d3de69a45c0b3e036b76;p=mesa.git glsl/compiler: Move the error_no_memory stub to standalone_scaffolding.cpp --- diff --git a/src/glsl/main.cpp b/src/glsl/main.cpp index ccac8399646..fc54ddd7eb1 100644 --- a/src/glsl/main.cpp +++ b/src/glsl/main.cpp @@ -41,12 +41,6 @@ static int glsl_version = 330; -extern "C" void -_mesa_error_no_memory(const char *caller) -{ - fprintf(stderr, "Mesa error: out of memory in %s", caller); -} - static void initialize_context(struct gl_context *ctx, gl_api api) { diff --git a/src/glsl/standalone_scaffolding.cpp b/src/glsl/standalone_scaffolding.cpp index a109c4e92d2..6e1ecec3235 100644 --- a/src/glsl/standalone_scaffolding.cpp +++ b/src/glsl/standalone_scaffolding.cpp @@ -34,6 +34,12 @@ #include #include "util/ralloc.h" +extern "C" void +_mesa_error_no_memory(const char *caller) +{ + fprintf(stderr, "Mesa error: out of memory in %s", caller); +} + void _mesa_warning(struct gl_context *ctx, const char *fmt, ...) {