Commit graph

63 commits

Author SHA1 Message Date
ttimo
0f24e27e6b retarget to Visual Studio 2022 (v143) and Windows 10 SDK 2024-01-21 18:30:08 -06:00
bilaliscarioth
b5dfbd485f FreeBSD / NetBSD / OpenBSD build fixes, contributed by bilaliscarioth <bilal@iscarioth.org>
see https://github.com/TTimo/GtkRadiant/pull/686 for details
2024-01-14 17:09:00 -07:00
Timothee 'TTimo' Besset
c9fce466d1 Upgrade Windows project files to 2019 2022-11-24 18:19:08 -06:00
Thomas Debesse
8aeff6b09a Do not do using namespace std to avoid type conflict
The STL now defines `std::byte` so doing `using namespace std`
will conflict will custom definition of `byte`, which this
legacy code is full of.

It looks like NetRadiant went the route of making explicit
usage of `std::` prefixed types and did not renamed the
custom definition of byte, so doing the same reduces diff
noise between the two trees.

This also makes the code future proof if the STL decides
to define some other types with common name.

This patches replaces all usages of `map`, `pair` and
`vector` with `std::map`, `std::pair` and `std::vector`
and remove the `using namespace std` line in `stl_check.h`.

```
libs/mathlib.h:132:44: error: reference to ‘byte’ is ambiguous
  132 | void NormalToLatLong( const vec3_t normal, byte bytes[2] );
      |                                            ^~~~
In file included from /usr/include/c++/11/bits/stl_algobase.h:61,
                 from /usr/include/c++/11/bits/char_traits.h:39,
                 from /usr/include/c++/11/ios:40,
                 from /usr/include/c++/11/ostream:38,
                 from /usr/include/c++/11/iostream:39,
                 from libs/missing.h:76,
                 from radiant/qe3.h:40,
                 from radiant/stdafx.h:39,
                 from radiant/bp_dlg.cpp:28:
/usr/include/c++/11/bits/cpp_type_traits.h:404:30: note: candidates are: ‘enum class std::byte’
  404 |   enum class byte : unsigned char;
      |                              ^~~~
```
2022-07-14 17:18:51 +02:00
Timothee Besset
08b44c433d Disable the deprecated functions warning 2018-01-21 14:59:29 -06:00
Timothee Besset
e08d6b6429 Visual Studio 2017. Fixed q3map2_urt 64 bit compilation also. 2018-01-21 14:47:06 -06:00
Thomas Debesse
a3773852a4 preproc: add a FreeBSD condition everytime there is Linux or MacOS 2017-08-30 14:20:01 +00:00
Timothee Besset
62d0a93fda #162 bobtoolz brush cleanup wasn't loading patches, so it was dropping them from rebuilding func_group entities after fixing bad brushes in them 2017-08-20 16:57:09 -05:00
Pan7
2e119b583d Extra gtk_box_set_homogeneous function calls 2017-05-16 00:34:04 +02:00
Timothee "TTimo" Besset
ef888dede5 Merge pull request #492 from Pan7/bobNum
Numeric text fields for bobtoolz
2017-05-15 17:06:30 -05:00
Pan7
d08926a1fe Numeric text fields for bobtoolz 2017-05-14 05:18:36 +02:00
Pan7
31c24a875f Make menus more consistent with ellipses 2017-05-10 23:26:29 +02:00
Pan7
e74153558b Fix delete and comparison warning 2017-04-27 17:56:57 +02:00
Pan7
0402765f7b Replace deprecated gtk combo 2017-04-24 16:32:26 +02:00
Pan7
aeaa370f09 Left align for the text of Labels 2017-03-28 09:29:11 +02:00
Pan7
e9aa6a836f More Dialog improvements 2017-03-26 17:09:18 +02:00
Pan7
c2e44c532a Dialog improvements 2017-03-23 09:37:50 +01:00
Pan7
626c2ef7cd More gtk i81n 2017-03-16 12:40:56 +01:00
Pan7
bdb1c3abaa Replacing deprecated GTK functions 2017-03-15 11:58:36 +01:00
Pan7
afca61523a Use GTK2 events 2017-03-04 18:36:21 +01:00
TTimo
a26c818a1e remove the old .vcproj 2017-01-01 09:08:37 -06:00
Timothee "TTimo" Besset
c918a29cd0 Merge pull request #352 from Pan7/Sys_FPrintf
Using Sys_FPrintf with SYS_WRN and SYS_ERR
2016-06-11 13:01:13 -05:00
Pan7
5105fc5db8 Using Sys_FPrintf with SYS_WRN and SYS_ERR 2016-05-16 21:20:20 +02:00
Timothee Besset
b36b3ba4b6 Visual Studio 2015 on debug configs too 2016-04-24 14:52:52 -05:00
Timothee Besset
5ed4d02c78 more Visual Studio 2015 conversion 2015-12-24 19:21:23 -06:00
TTimo
48369d78f9 - Convert to Visual Studio 2015
- Drop STLPort
- Rebuild libxml2 binaries, update project files accordingly
- Rebuild jpeg-9 binaries
2015-11-07 23:44:49 -06:00
TTimo
666847b0ce switch to xp compatible compiler toolchain, add/fix an archive and upload script for the VM builder 2013-08-24 22:50:12 +00:00
jdolan
0dae745694 Again, use intptr_t when casting from gpointer to int. 2013-07-07 10:18:51 -04:00
jdolan
a6fbf511a2 Yet another char cast fix. 2013-07-07 10:16:11 -04:00
Timothee Besset
f72f41cf1d fix ws2_32 lib dep 2013-06-02 00:17:56 +01:00
Timothee Besset
f397e4a8d6 link libxml2 2013-06-01 23:39:34 +01:00
Timothee Besset
9f425c0c72 add include path for gdk-pixbuf 2013-06-01 23:26:37 +01:00
Timothee Besset
1ec0ec94ba switching to newer gtk and libxml. wip 2013-06-01 23:05:35 +01:00
Timothee "TTimo" Besset
974213d297 Use a new version of the jpeg library, with x64 support 2013-05-27 22:08:36 -05:00
Timothee "TTimo" Besset
2ca658fe9f convert projects to msvc 2012 2013-05-23 20:44:41 -05:00
jdolan
a269593afe Low hanging fruit: bring the number of compiler warnings down from 264 to 33. 2013-05-03 02:57:29 -04:00
Timothee 'TTimo' Besset
61a03e2ee7 add license info on a few things 2012-06-04 23:42:31 -05:00
Ben Noordhuis
3311b00ae6 fix warning: format not a string literal and no format arguments 2012-03-18 02:13:11 +01:00
Timothee TTimo Besset
830125fad0 uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00
rambetter
88f8603d62 8MB stack size linker options on all VC2008 proj files.
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@485 8a3a26a2-13c4-0310-b231-cf6edde360e5
2011-04-06 04:12:34 +00:00
rambetter
33da149be0 Backing out commit 483. Going to set linker flags instead.
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@484 8a3a26a2-13c4-0310-b231-cf6edde360e5
2011-04-06 04:08:22 +00:00
rambetter
e39f6f4bae Increasing stack size on Windows build.
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@483 8a3a26a2-13c4-0310-b231-cf6edde360e5
2011-04-06 03:56:18 +00:00
rambetter
48410b113d Fixing Linux SCons build.
Fixing plugins on both Linux and Windows.  It's consistent now.
Fixing gl font on Windows.
Mostly, added lots of plugins.


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@474 8a3a26a2-13c4-0310-b231-cf6edde360e5
2011-02-22 04:48:05 +00:00
rambetter
561e062c87 This is a major change that updates the 3rd party libs on Windows builds.
A couple of things are broken right now:
- OpenGL font in Windows not appearing (expected to be broken, will fix)
- Linux build broken because it loads some .vcproj files that are removed
- 3rd party libs are downloaded from porky.nerius.com, not id Software


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@473 8a3a26a2-13c4-0310-b231-cf6edde360e5
2011-02-21 14:37:49 +00:00
mattn
204566e81e * applied patch by StefanV (from mailinglist) that fixes an error in config.py (broke compilation) and some string conversion warnings
* fixes some more string conversions warnings in bobtoolz
* fixed unresolved symbols in bobtoolz and gtkgensurf (due to the above mentioned patch where the prototypes were not updated)


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@320 8a3a26a2-13c4-0310-b231-cf6edde360e5
2008-09-06 08:35:17 +00:00
TTimo
cc4e44e31a merge branch work back into trunk
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@319 8a3a26a2-13c4-0310-b231-cf6edde360e5
2008-09-01 17:34:10 +00:00
TTimo
2def0428da ABToSVK commit
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/ZeroRadiant.ab@308 8a3a26a2-13c4-0310-b231-cf6edde360e5
2008-08-24 03:20:51 +00:00
mattn
0e5c89d2c0 * fixed a warning and an error in the overflow check in l_net
* const stuff for GetNextChainItem (bobtoolz)


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@303 8a3a26a2-13c4-0310-b231-cf6edde360e5
2008-07-25 19:14:48 +00:00
mattn
46bdd92bb4 * more translateable strings
* fixed warnings about unused variables


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@293 8a3a26a2-13c4-0310-b231-cf6edde360e5
2008-07-05 07:14:52 +00:00
mattn
d5fc00a4f8 * removed unnecessary gi18n.h inclusions
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@283 8a3a26a2-13c4-0310-b231-cf6edde360e5
2008-06-26 14:30:58 +00:00