Skip to content

Commit

Permalink
Bug 673865 - WebGLContextGL.cpp failed to compile with Solaris Studio…
Browse files Browse the repository at this point in the history
…. r=bjacob.
  • Loading branch information
Ginn Chen committed Jul 28, 2011
1 parent 45250c3 commit be68d5f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion content/canvas/src/WebGLTexelConversions.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,16 @@
// * added BGR8 path, we need it in Mozilla to load textures from DOMElements
// * enclosing in a namespace WebGLTexelConversions to make it clear it is, in profilers and in symbol table dumps
// * added __restrict keywords. Although non-standard, this is very well supported across all compilers
// that I know of (GCC/LLVM/MSC/ICC/Sun/XLC...)
// that I know of (GCC/LLVM/MSC/ICC/XLC...)
// * optimized scaleFactor computation in Unmultiply functions (1 div instead of 2)

#ifndef WEBGLTEXELCONVERSIONS_H_
#define WEBGLTEXELCONVERSIONS_H_

#ifdef __SUNPRO_CC
#define __restrict
#endif

#include "WebGLContext.h"

namespace mozilla {
Expand Down

0 comments on commit be68d5f

Please sign in to comment.