gfx/skia/trunk/src/gpu/gl/mesa/osmesa_wrapper.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/skia/trunk/src/gpu/gl/mesa/osmesa_wrapper.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,16 @@
     1.4 +
     1.5 +/*
     1.6 + * Copyright 2013 Google Inc.
     1.7 + *
     1.8 + * Use of this source code is governed by a BSD-style license that can be
     1.9 + * found in the LICENSE file.
    1.10 + */
    1.11 +
    1.12 +// Older versions of XQuartz have a bug where a header included by osmesa.h
    1.13 +// defines GL_GLEXT_PROTOTYPES. This will cause a redefinition warning if
    1.14 +// the file that includes osmesa.h already defined it. XCode 3 uses a version
    1.15 +// of gcc (4.2.1) that does not support the diagnostic pragma to disable a
    1.16 +// warning (added in 4.2.4). So we use the system_header pragma to shut GCC
    1.17 +// up about warnings in osmesa.h
    1.18 +#pragma GCC system_header
    1.19 +#include <GL/osmesa.h>

mercurial