Skip to content

Commit a5e4c3b

Browse files
author
Koen Deforche
committed
fix Sun/Oracle CC build
1 parent b7ff3c9 commit a5e4c3b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/Wt/WGLWidget

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ typedef std::string UniformLocation;
2121
typedef std::string Texture;
2222
typedef std::string JavaScriptMatrix4x4;
2323

24+
#if 0
2425
#define GLDEBUG do {js_ << "\n{var err = ctx.getError(); if(err != ctx.NO_ERROR) alert('error " << __FUNCTION__ << ": ' + err);}";} while(false)
26+
#else
27+
#define GLDEBUG
28+
#endif
2529

2630
// Incomplete implementation of the new webgl standard. This is to be
2731
// considered as a technology preview, and we welcome comments regarding

src/Wt/WStringUtil.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ std::string narrow(const std::wstring& s, const std::locale &loc)
8989
if (myresult == Cvt::partial || pc >= pstr + size) {
9090
size += s.length();
9191
std::size_t sofar = pc - pstr;
92-
pstr = (char *)realloc(pstr, size);
92+
pstr = (char *)std::realloc(pstr, size);
9393
pc = pstr + sofar;
9494
}
9595

0 commit comments

Comments
 (0)