-DPOSIX=1
-DXWINDOWS=1
)
+ find_package(X11 REQUIRED)
+ include_directories(${X11_INCLUDE_DIR})
else()
add_definitions(
-D_WIN32
pkg_check_modules(GTK gtk+-2.0)
if(WIN32)
pkg_check_modules(GTKGL gtkglext-win32-1.0)
+ elseif(APPLE)
+ pkg_check_modules(GTKGL gtkglext-quartz-1.0)
else()
pkg_check_modules(GTKGL gtkglext-x11-1.0)
endif()
#define AFX_DPATCH_H__26C6B083_CE5B_420B_836B_1DDA733C04CE__INCLUDED_
#include <list>
-#include <stdlib.h>
+#include <cstdlib>
typedef struct
{
#pragma once
#endif // _MSC_VER > 1000
-#include <stdlib.h>
+#include <cstdlib>
#include "mathlib.h"
#include "DMap.h"
class DBrush;
#ifndef __DTREE_H__
#define __DTREE_H__
+#include <cstdlib>
#include "qerplugin.h"
#include "signal/isignal.h"
#include "string/string.h"
#include "dialogs-gtk.h"
#include "../funchandlers.h"
+#include <cstdlib>
#include "str.h"
#include <list>
#include <gtk/gtk.h>
#include "scenelib.h"
#include "texturelib.h"
+#include <cstdlib>
+
//#include "dialogs-gtk.h"
/************************
/ | / |
/ | / |
4 ----- 6 |
- | 2|_|___|8
- | / | /
- | / | / ----> WEST, definitely
- ||/ | /
+ | 2|_|___|8
+ | / | /
+ | / | / ----> WEST, definitely
+ |/ | /
1|_____|/3
*/
#include "bsploader.h"
#include <list>
+#include <cstdlib>
typedef struct {
int portalclusters;
}
}
- delete repeatlist;
+ delete[] repeatlist;
return pointlist;
}
*/
#include <stdio.h>
-#include <stdlib.h>
+#include <cstdlib>
#include <math.h>
#include "gensurf.h"
#define REAL double
#endif /* not SINGLE */
-#include <stdlib.h>
+#include <cstdlib>
#include <stdio.h>
#include <math.h>
#include "gensurf.h"
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include <stdlib.h>
+#include <cstdlib>
#include <math.h>
#include "gensurf.h"
// Leonardo Zide (leo@lokigames.com)
//
-#include <stdlib.h>
+#include <cstdlib>
#include "gensurf.h"
static const unsigned char data[2048] = {
#include <gtk/gtk.h>
#include <stdio.h>
-#include <stdlib.h>
+#include <cstdlib>
#include <string.h>
#include <math.h>
#include "gensurf.h"
*/
#include <math.h>
-#include <stdlib.h>
+#include <cstdlib>
#include <stdio.h>
#include "gensurf.h"
#include <gtk/gtk.h>
#include <stdio.h>
-#include <stdlib.h>
+#include <cstdlib>
/*
#include <string.h>
#include <tchar.h>
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include <stdlib.h>
+#include <cstdlib>
#include <math.h>
#include <stdio.h>
#include "gensurf.h"
#include <math.h>
#include <stdio.h>
-#include <stdlib.h>
+#include <cstdlib>
#include "gensurf.h"
#undef ISOMETRIC
#include <gtk/gtk.h>
#include <stdio.h>
-#include <stdlib.h>
+#include <cstdlib>
#include "iplugin.h"
#include "portals.h"
#include <string.h>
-#include <stdlib.h>
+#include <cstdlib>
#ifndef __APPLE__
#include <search.h>
#endif
#include "prtview.h"
#include <stdio.h>
-#include <stdlib.h>
+#include <cstdlib>
#include "profile/profile.h"
*/
#include "sunplug.h"
+#include <cstdlib>
#include "debugging/debugging.h"
#include "string/string.h"
#include <list>
+#include <cstdlib>
class Level;
#if defined ( POSIX )
+#include <cstdlib>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#define INCLUDED_ECLASSLIB_H
#include <stdio.h>
-#include <stdlib.h>
+#include <cstdlib>
#include <list>
#include <map>
#include <vector>
#define INCLUDED_GTKUTIL_ENTRY_H
#include <stdio.h>
-#include <stdlib.h>
+#include <cstdlib>
#include <gtk/gtkentry.h>
inline void entry_set_string( GtkEntry* entry, const char* string ){
#include "iimage.h"
#include "iarchive.h"
#include "idatastream.h"
-#include <stdlib.h>
+#include <cstdlib>
struct RGBAPixel
{
#include <windows.h>
#include <stdio.h>
-#include <stdlib.h>
+#include <cstdlib>
#include <string.h>
#include "l_net.h"
#include "l_net_wins.h"
#include "file.h"
#include <memory.h>
-#include <stdlib.h>
+#include <cstdlib>
#include <string.h>
#include <stdarg.h>
#include "file.h"
-#include <stdlib.h>
+#include <cstdlib>
#include "str.h"
#include "iselection.h"
#include "generic/callback.h"
#include "scenelib.h"
-#include <stdlib.h>
+#include <cstdlib>
class SelectableBool : public Selectable
{
#ifndef __MATH_ANGLES_H__
#define __MATH_ANGLES_H__
-#include <stdlib.h>
+#include <cstdlib>
#include <assert.h>
#include "math_vector.h"
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
-#include <stdlib.h>
+#include <cstdlib>
#include <time.h>
#include <ctype.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
-#include <stdlib.h>
+#include <cstdlib>
#include <time.h>
#include <ctype.h>
#ifdef WIN32 // mac doesn't have malloc.h
#define MAX_QINT 0x7fffffff
#define MIN_QINT ( -MAX_QINT - 1 )
-#ifndef max
-#define max( x, y ) ( ( ( x ) > ( y ) ) ? ( x ) : ( y ) )
-#define min( x, y ) ( ( ( x ) < ( y ) ) ? ( x ) : ( y ) )
-#endif
-
#ifndef sign
#define sign( f ) ( ( f > 0 ) ? 1 : ( ( f < 0 ) ? -1 : 0 ) )
#endif
#ifndef __UTIL_LIST_H__
#define __UTIL_LIST_H__
-#include <stdlib.h>
+#include <cstdlib>
#include <assert.h>
template< class type >
//need to rewrite this
#include "util_str.h"
-#include <stdlib.h>
+#include <cstdlib>
#include <ctype.h>
#include <stdio.h>
#include <stdarg.h>
#if !defined ( INCLUDED_STRINGIO_H )
#define INCLUDED_STRINGIO_H
-#include <stdlib.h>
+#include <cstdlib>
#include <cctype>
#include "generic/vector.h"
#if !defined( INCLUDED_UNIQUENAMES_H )
#define INCLUDED_UNIQUENAMES_H
+#include <cstdlib>
#include "debugging/debugging.h"
#include <map>
#include "string/string.h"
#include "light.h"
-#include <stdlib.h>
+#include <cstdlib>
#include "cullable.h"
#include "renderable.h"
#include "dds.h"
-#include <stdlib.h>
+#include <cstdlib>
#include "ifilesystem.h"
#include "iarchive.h"
#include "jpeg.h"
#include <setjmp.h>
-#include <stdlib.h>
+#include <cstdlib>
#include <stdio.h>
#include <string.h>
typedef unsigned char byte;
-#include <stdlib.h>
+#include <cstdlib>
#include "imagelib.h"
#include "bytestreamutils.h"
typedef unsigned char byte;
-#include <stdlib.h>
+#include <cstdlib>
#include "generic/bitfield.h"
#include "imagelib.h"
#include "hlw.h"
-#include <stdlib.h>
+#include <cstdlib>
#include <string.h>
#include <stdio.h>
#include "mip.h"
-#include <stdlib.h>
+#include <cstdlib>
#include <string.h>
#include <stdio.h>
#include "sprite.h"
-#include <stdlib.h>
+#include <cstdlib>
#include <string.h>
#include <stdio.h>
// ====== PNG loader functionality ======
#include "png.h"
-#include <stdlib.h>
+#include <cstdlib>
void user_warning_fn( png_structp png_ptr, png_const_charp warning_msg ){
globalErrorStream() << "libpng warning: " << warning_msg << "\n";
#include "mdlimage.h"
#include <math.h>
-#include <stdlib.h>
+#include <cstdlib>
#include "ifilesystem.h"
#include "bytestreamutils.h"
#include <stdio.h>
#include "picomodel.h"
typedef unsigned char byte;
-#include <stdlib.h>
+#include <cstdlib>
#include <algorithm>
#include <list>
#include "shaders.h"
#include <stdio.h>
-#include <stdlib.h>
+#include <cstdlib>
#include <map>
#include <list>
#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>
#include <stdio.h>
-#include <stdlib.h>
+#include <cstdlib>
#if !defined( WIN32 )
#include "iarchive.h"
#include <stdio.h>
-#include <stdlib.h>
+#include <cstdlib>
#include <vector>
#include "stream/filestream.h"
#include "vfs.h"
#include <stdio.h>
-#include <stdlib.h>
+#include <cstdlib>
#include <glib.h>
#include "qerplugin.h"
string
xmllib
)
+if(NOT WIN32)
+ target_link_libraries(radiant ${X11_LIBRARIES})
+endif()
#include "mainframe.h"
-#include <stdlib.h>
+#include <cstdlib>
#include <gtk/gtkmain.h>
#include <gtk/gtkvbox.h>
#include "string/string.h"
-#include <stdlib.h>
+#include <cstdlib>
char com_token[1024];
#if defined( POSIX )
-#include <stdlib.h>
+#include <cstdlib>
#include <pwd.h>
#include <unistd.h>
#include "debugging/debugging.h"
#include <stdio.h>
-#include <stdlib.h>
+#include <cstdlib>
#include <string.h>
#if defined( _WIN32 )
#include <GL/glx.h>
#include <dlfcn.h>
-#include <gdk/gdkx.h>
Bool ( *qglXQueryExtension )( Display *dpy, int *errorb, int *event );
void* ( *qglXGetProcAddressARB )( const GLubyte * procName );
qwglGetProcAddress = wglGetProcAddress;
#elif defined( XWINDOWS )
qglXGetProcAddressARB = (glXGetProcAddressARBProc)dlsym( RTLD_DEFAULT, "glXGetProcAddressARB" );
- if ( ( qglXQueryExtension == 0 ) || ( qglXQueryExtension( GDK_DISPLAY(),0,0 ) != True ) ) {
+ if ( ( qglXQueryExtension == 0 ) || ( qglXQueryExtension(XOpenDisplay(nullptr), 0, 0) != True ) ) {
return 0;
}
#else
#include "server.h"
#include "debugging/debugging.h"
-#include "warnings.h"
-#include <vector>
#include <map>
+#include <vector>
#include "os/path.h"
#include "modulesystem.h"
typedef int ( *FunctionPointer )();
DynamicLibrary( const char* filename ){
- m_library = dlopen( filename, RTLD_NOW|RTLD_LOCAL|RTLD_DEEPBIND );
+ m_library = dlopen(filename, RTLD_LOCAL
+ | RTLD_NOW
+ #ifndef __APPLE__
+ | RTLD_DEEPBIND
+ #endif
+ );
if ( !m_library )
{
globalErrorStream() << "LoadLibrary failed: '" << filename << "'\n";
#include "texmanip.h"
-#include <stdlib.h>
+#include <cstdlib>
#include "stream/textstream.h"
static byte *row1 = NULL, *row2 = NULL;
#endif
#if defined( __linux__ ) || defined( __FreeBSD__ )
-#include <stdlib.h>
+#include <cstdlib>
bool open_url( const char* url ){
// \todo FIXME: the way we open URLs on *nix should be improved. A script is good (see how I do on RTCW)
char command[2 * PATH_MAX];
#endif
#ifdef __APPLE__
-#include <stdlib.h>
+#include <cstdlib>
bool open_url( const char* url ){
char command[2 * PATH_MAX];
snprintf( command, sizeof( command ), "open \"%s\" &", url );
#include <stdio.h>
#include <string.h>
-#include <stdlib.h>
+#include <cstdlib>
#include <errno.h>
#include <ctype.h>
#include <time.h>
#include <stdio.h>
#include <string.h>
-#include <stdlib.h>
+#include <cstdlib>
#include <errno.h>
#include <ctype.h>
#include <time.h>
// qdata.h
-#include <stdlib.h>
+#include <cstdlib>
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdio.h>
#include <string.h>
-#include <stdlib.h>
+#include <cstdlib>
#include <errno.h>
#include <ctype.h>
#include <time.h>
#include <gl/glaux.h>
#include "glingr.h"
#include <math.h>
-#include <stdlib.h>
+#include <cstdlib>
#include "cmdlib.h"
#include "mathlib.h"
#include <windows.h>
#endif
-#include <stdlib.h>
+#include <cstdlib>
#include "cmdlib.h"
#include "mathlib.h"
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <stdlib.h>
+#include <cstdlib>
#include <stdio.h>
#include <math.h>
#include <string.h>
*/
-#include <stdlib.h>
+#include <cstdlib>
#include <stdio.h>
#include <math.h>
#include <memory.h>
#include <stdio.h>
#include <string.h>
-#include <stdlib.h>
+#include <cstdlib>
#include <errno.h>
#include <ctype.h>
#include <time.h>
//
#include "h2common.h"
-#include <stdlib.h> // needed here for size_t
+#include <cstdlib> // needed here for size_t
typedef struct ResourceManager_s
{
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <stdlib.h> // for size_t
+#include <cstdlib> // for size_t
#include "arrayedlist.h"
#define JN_YAW_CHANGED 0x00000001
// qdata.h
-#include <stdlib.h>
+#include <cstdlib>
#include <stdio.h>
#include <math.h>
#include <string.h>
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <stdlib.h>
+#include <cstdlib>
#include <stdio.h>
#include <assert.h>
#include <string.h>