Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Mesa
piglit
Commits
0f0543fd
Commit
0f0543fd
authored
Mar 13, 2011
by
Jose Fonseca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Portability build fixes for MinGW.
parent
a46710f3
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
26 additions
and
7 deletions
+26
-7
CMakeLists.txt
CMakeLists.txt
+5
-0
src/piglit/gl_wrap.h
src/piglit/gl_wrap.h
+4
-0
src/piglit/glut_wrap.h
src/piglit/glut_wrap.h
+4
-0
tests/general/fog-modes.c
tests/general/fog-modes.c
+1
-1
tests/glean/CMakeLists.gl.txt
tests/glean/CMakeLists.gl.txt
+1
-1
tests/shaders/glsl-fs-pointcoord.c
tests/shaders/glsl-fs-pointcoord.c
+4
-0
tests/spec/ext_fog_coord/modes.c
tests/spec/ext_fog_coord/modes.c
+1
-1
tests/util/piglit-util-gl.c
tests/util/piglit-util-gl.c
+1
-1
tests/util/piglit-util-gles2.c
tests/util/piglit-util-gles2.c
+1
-1
tests/util/piglit-util.c
tests/util/piglit-util.c
+1
-1
tests/util/piglit-util.h
tests/util/piglit-util.h
+3
-1
No files found.
CMakeLists.txt
View file @
0f0543fd
...
...
@@ -18,6 +18,11 @@ IF (C_COMPILER_FLAG_WALL)
SET
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-Wall"
)
ENDIF
(
C_COMPILER_FLAG_WALL
)
if
(
WIN32
)
# MSVC & MinGW only define & use APIENTRY
add_definitions
(
-DGLAPIENTRY=__stdcall
)
endif
(
WIN32
)
if
(
APPLE
)
find_path
(
GLEXT_INCLUDE_DIR
NAMES OpenGL/glext.h
...
...
src/piglit/gl_wrap.h
View file @
0f0543fd
...
...
@@ -38,6 +38,10 @@
extern
"C"
{
#endif
#ifdef WIN32
#include <windows.h>
#endif
#ifdef USE_OPENGL
# include "glew.h"
/* Include the real headers too, in case GLEW misses something. */
...
...
src/piglit/glut_wrap.h
View file @
0f0543fd
...
...
@@ -38,6 +38,10 @@
extern
"C"
{
#endif
#ifdef WIN32
#include <windows.h>
#endif
#ifdef USE_GLUT
# ifdef __APPLE__
# include <GLUT/glut.h>
...
...
tests/general/fog-modes.c
View file @
0f0543fd
...
...
@@ -29,7 +29,7 @@
#include "piglit-util.h"
#include "piglit-framework.h"
#if defined(
_MSC_VER
)
#if defined(
WIN32
)
#undef near
#undef far
#endif
...
...
tests/glean/CMakeLists.gl.txt
View file @
0f0543fd
if (
MSVC
)
if (
WIN32
)
add_definitions ( -D__WIN__ -D__MS__ )
ELSEIF (APPLE)
add_definitions ( -D__AGL__ -D__UNIX__ )
...
...
tests/shaders/glsl-fs-pointcoord.c
View file @
0f0543fd
...
...
@@ -31,6 +31,10 @@
* with point sprites enabled.
*/
#if defined(WIN32)
#include <windows.h>
#endif
#include <assert.h>
#include <string.h>
#include <stdio.h>
...
...
tests/spec/ext_fog_coord/modes.c
View file @
0f0543fd
...
...
@@ -29,7 +29,7 @@
#include "piglit-util.h"
#include "piglit-framework.h"
#if defined(
_MSC_VER
)
#if defined(
WIN32
)
#undef near
#undef far
#endif
...
...
tests/util/piglit-util-gl.c
View file @
0f0543fd
...
...
@@ -21,7 +21,7 @@
* USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#if defined(
_MSC_VER
)
#if defined(
WIN32
)
#include <windows.h>
#endif
...
...
tests/util/piglit-util-gles2.c
View file @
0f0543fd
...
...
@@ -21,7 +21,7 @@
* USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#if defined(
_MSC_VER
)
#if defined(
WIN32
)
#include <windows.h>
#endif
...
...
tests/util/piglit-util.c
View file @
0f0543fd
...
...
@@ -21,7 +21,7 @@
* USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#if defined(
_MSC_VER
)
#if defined(
WIN32
)
#include <windows.h>
#endif
...
...
tests/util/piglit-util.h
View file @
0f0543fd
...
...
@@ -25,9 +25,11 @@
#include "config.h"
#if defined(
_MSC_VER
)
#if defined(
WIN32
)
#include <windows.h>
#endif
#if defined(_MSC_VER)
typedef
__int32
int32_t
;
typedef
__int64
int64_t
;
typedef
unsigned
__int8
uint8_t
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment