Merge pull request #1033 from heuripedes/master

Build fixes
This commit is contained in:
Twinaphex 2014-09-16 23:02:44 +02:00
commit c1cd4ad37a
2 changed files with 4 additions and 4 deletions

View File

@ -51,9 +51,6 @@ typedef void (*environment_get_t)(int *argc, char *argv[], void *args,
void *params_data);
typedef void (*process_args_t)(int *argc, char *argv[]);
/* avoid cyclic reference */
typedef struct video_driver video_driver_t;
typedef struct frontend_ctx_driver
{
environment_get_t environment_get;
@ -70,7 +67,7 @@ typedef struct frontend_ctx_driver
const char *ident;
const video_driver_t *(*get_video_driver)(void);
const struct video_driver *(*get_video_driver)(void);
} frontend_ctx_driver_t;
extern const frontend_ctx_driver_t frontend_ctx_gx;

View File

@ -218,6 +218,9 @@ if [ "$HAVE_OPENGL" != 'no' ] && [ "$HAVE_GLES" != 'yes' ]; then
check_lib_cxx CG -lCg cgCreateContext
[ "$HAVE_CG" = 'yes' ] && CG_LIBS='-lCg -lCgGL'
fi
# fix undefined variables
PKG_CONF_USED+=CG
else
echo "Ignoring Cg. Desktop OpenGL is not enabled."
HAVE_CG='no'