Peter Howkins [Mon, 2 Apr 2012 14:14:09 +0000 (15:14 +0100)]
C++ needs variables to have a type, use int as a default.
Peter Howkins [Mon, 2 Apr 2012 14:13:13 +0000 (15:13 +0100)]
On linux use \r instead of ^M as the character for a carridge return.
Peter Howkins [Mon, 2 Apr 2012 13:56:05 +0000 (14:56 +0100)]
-fpermissive to allow GCC to compile old C++
Peter Howkins [Mon, 2 Apr 2012 13:47:47 +0000 (14:47 +0100)]
C++ doesn't allow variables to be declared without a type, use 'int' as
a default.
Peter Howkins [Sat, 24 Mar 2012 17:35:46 +0000 (17:35 +0000)]
Do not specify linux architecture specific defines, most of these are defaults
now, and some cause issues on i386 for example.
Peter Howkins [Fri, 23 Mar 2012 18:41:17 +0000 (18:41 +0000)]
Merge branch 'linux1' of ssh://git.code.sf.net/p/cdesktopenv/code into linux1
Peter Howkins [Fri, 23 Mar 2012 13:49:49 +0000 (13:49 +0000)]
Link with C++ linker
Peter Howkins [Fri, 23 Mar 2012 13:49:24 +0000 (13:49 +0000)]
Don't try to define abs() on linux, stdlib will handle it.
Peter Howkins [Thu, 22 Mar 2012 17:05:45 +0000 (17:05 +0000)]
Exceptionally hacky linux fix. gnu gencat is returning != 0 even when it's
succeeding.
Peter Howkins [Thu, 22 Mar 2012 16:00:56 +0000 (16:00 +0000)]
Do not include a couple of missing files under linux.
Peter Howkins [Tue, 20 Mar 2012 20:50:16 +0000 (20:50 +0000)]
Don't include a couple of non-existant svr4 files on linux.
Peter Howkins [Tue, 20 Mar 2012 20:43:06 +0000 (20:43 +0000)]
Change over Linux to using the System V style pty code, it seems at some
point Linuxes pty code is no longer the BSD legacy one by default anymore.
Peter Howkins [Wed, 14 Mar 2012 13:53:28 +0000 (13:53 +0000)]
Link with C++ linker
Peter Howkins [Wed, 14 Mar 2012 13:52:14 +0000 (13:52 +0000)]
Prototype static function setRealDelArea() before it is used.
Peter Howkins [Wed, 14 Mar 2012 13:50:42 +0000 (13:50 +0000)]
On linux do not include X11/Xlocale.h but locale.h, this prevents
Xlocale.h redefining setlocate() into _Xsetlocale() that it then can't
find and link against.
Peter Howkins [Tue, 13 Mar 2012 17:54:48 +0000 (17:54 +0000)]
Namespace ostream and endl into std::
Use <iostream> without the .h
Peter Howkins [Tue, 13 Mar 2012 17:45:34 +0000 (17:45 +0000)]
namespace ostream into std::ostream for modern C++
Peter Howkins [Tue, 13 Mar 2012 17:43:43 +0000 (17:43 +0000)]
Add in -fpermissive for compiling old C++ on gcc
Peter Howkins [Tue, 13 Mar 2012 17:41:48 +0000 (17:41 +0000)]
Include <iostream> without the .h on modern C++
Peter Howkins [Tue, 13 Mar 2012 17:40:21 +0000 (17:40 +0000)]
On linux ostream and endl need prefixing into the std namespace.
Peter Howkins [Tue, 13 Mar 2012 17:31:56 +0000 (17:31 +0000)]
Include <iostream> without the .h on modern C++
Peter Howkins [Tue, 13 Mar 2012 17:18:35 +0000 (17:18 +0000)]
On linux use the system provided libXau rather than one from the imports
directory (that would have linked to the X11 tree).
Peter Howkins [Tue, 13 Mar 2012 16:44:50 +0000 (16:44 +0000)]
Add a .gitignore to try to reduce the amount of files listed as not
in repository on git status.
Peter Howkins [Tue, 13 Mar 2012 16:15:22 +0000 (16:15 +0000)]
Use C++ linker
Add in freetype headers
Use system provided -lXdmcp and -Xau instead of trying to compile them
from the imports directory.
Peter Howkins [Mon, 12 Mar 2012 21:26:30 +0000 (21:26 +0000)]
Change detector for linux platform to match other Imakefile changes
Peter Howkins [Mon, 12 Mar 2012 16:43:22 +0000 (16:43 +0000)]
These days include standard C++ header files without the .h on the end
Peter Howkins [Mon, 12 Mar 2012 16:27:41 +0000 (16:27 +0000)]
Use C++ linker
Peter Howkins [Mon, 12 Mar 2012 16:27:08 +0000 (16:27 +0000)]
Undo previous method and use __va_copy instead.
Peter Howkins [Mon, 12 Mar 2012 16:24:24 +0000 (16:24 +0000)]
On linux use the va_copy() func for variable arugment copying
Peter Howkins [Mon, 12 Mar 2012 16:19:32 +0000 (16:19 +0000)]
Initialise varargs list in the same way as OSF
Peter Howkins [Mon, 12 Mar 2012 16:16:16 +0000 (16:16 +0000)]
Do not bother trying to redefine the putenv() function
Peter Howkins [Mon, 12 Mar 2012 16:05:21 +0000 (16:05 +0000)]
CLK_TCK is considered obsolete in GCC, use CLOCKS_PER_SEC instead
Peter Howkins [Mon, 12 Mar 2012 16:03:06 +0000 (16:03 +0000)]
Do not redefine strdup() on Linux
Peter Howkins [Mon, 12 Mar 2012 15:41:09 +0000 (15:41 +0000)]
Use C++ linker
Peter Howkins [Mon, 12 Mar 2012 15:39:22 +0000 (15:39 +0000)]
Linux doesn't allow open() with O_CREAT without permission flags anymore.
Peter Howkins [Mon, 12 Mar 2012 15:19:36 +0000 (15:19 +0000)]
-fpermissive to allow gcc to compile old C++
Peter Howkins [Mon, 12 Mar 2012 15:18:09 +0000 (15:18 +0000)]
-fpermissive to allow GCC to compile old C++
Peter Howkins [Mon, 12 Mar 2012 15:15:38 +0000 (15:15 +0000)]
Set untyped variable to int
Peter Howkins [Mon, 12 Mar 2012 15:14:12 +0000 (15:14 +0000)]
Setting const variable with no type to 'int' (likely the default the
old compilers would have used)
Peter Howkins [Mon, 12 Mar 2012 14:48:23 +0000 (14:48 +0000)]
Use C++ linker
Peter Howkins [Mon, 12 Mar 2012 14:42:58 +0000 (14:42 +0000)]
Use C++ linker
Peter Howkins [Mon, 12 Mar 2012 14:40:34 +0000 (14:40 +0000)]
use C++ linker
Peter Howkins [Mon, 12 Mar 2012 14:37:47 +0000 (14:37 +0000)]
Use C++ linker
Peter Howkins [Mon, 12 Mar 2012 14:35:03 +0000 (14:35 +0000)]
Add linux to list of platforms that use that form of memset()
Peter Howkins [Mon, 12 Mar 2012 12:14:03 +0000 (12:14 +0000)]
Link with C++ linker
Peter Howkins [Mon, 12 Mar 2012 12:12:41 +0000 (12:12 +0000)]
On linux use __fds_bits instead of fds_bits
Peter Howkins [Mon, 12 Mar 2012 12:07:09 +0000 (12:07 +0000)]
Link with C++ linker
Peter Howkins [Mon, 12 Mar 2012 12:04:55 +0000 (12:04 +0000)]
-fpermissive to allow old C++ to compile on gcc
Peter Howkins [Mon, 12 Mar 2012 11:56:11 +0000 (11:56 +0000)]
On Linux no access to pre iso C varargs.h
Peter Howkins [Mon, 12 Mar 2012 11:45:18 +0000 (11:45 +0000)]
Link with C++ linker
Peter Howkins [Mon, 12 Mar 2012 11:33:49 +0000 (11:33 +0000)]
Link with C++ linker
Peter Howkins [Mon, 12 Mar 2012 11:27:37 +0000 (11:27 +0000)]
Link with C++ linker
Peter Howkins [Mon, 12 Mar 2012 11:26:01 +0000 (11:26 +0000)]
Linux has the same value for ENOTSUP as another var, therefore protect one
to prevent a duplicate case issue in the switch().
Peter Howkins [Mon, 12 Mar 2012 11:19:46 +0000 (11:19 +0000)]
Link with C++ linker
Peter Howkins [Mon, 12 Mar 2012 11:19:04 +0000 (11:19 +0000)]
Link with C++ linker
Peter Howkins [Mon, 12 Mar 2012 11:17:27 +0000 (11:17 +0000)]
Link with C++ linker
Peter Howkins [Mon, 12 Mar 2012 11:16:41 +0000 (11:16 +0000)]
Link with C++ linker
Peter Howkins [Mon, 12 Mar 2012 11:11:10 +0000 (11:11 +0000)]
Link with C++ linker
Peter Howkins [Mon, 12 Mar 2012 11:01:17 +0000 (11:01 +0000)]
Link with C++ linker
Peter Howkins [Mon, 12 Mar 2012 10:41:53 +0000 (10:41 +0000)]
Add in freetype directory to inlude path
Peter Howkins [Mon, 12 Mar 2012 10:38:42 +0000 (10:38 +0000)]
On Linux when linking against a C++ library the whole program must be linked
with the C++ linker.
Peter Howkins [Mon, 12 Mar 2012 00:48:04 +0000 (00:48 +0000)]
When linking against libtt (a C++ lib) the link stage should use the C++
linker
Peter Howkins [Mon, 12 Mar 2012 00:44:14 +0000 (00:44 +0000)]
When linking against C++ libraries gcc insists on using the C++ linker
Peter Howkins [Mon, 12 Mar 2012 00:37:58 +0000 (00:37 +0000)]
On Linux don't redefine the prototypes to malloc() and realloc() to the wrong
things.
Peter Howkins [Mon, 12 Mar 2012 00:35:06 +0000 (00:35 +0000)]
Linux is a unistdh platform not an osfcn.h
Peter Howkins [Mon, 12 Mar 2012 00:33:44 +0000 (00:33 +0000)]
linux is a unistd.h platform not a osfcn.h
Peter Howkins [Mon, 12 Mar 2012 00:32:10 +0000 (00:32 +0000)]
-fpermissive to allow gcc to compile old C++
Peter Howkins [Mon, 12 Mar 2012 00:31:10 +0000 (00:31 +0000)]
Do not redefine prototype of exit() under linux
Peter Howkins [Mon, 12 Mar 2012 00:29:37 +0000 (00:29 +0000)]
Add <unistd.h> include for getopt()
Peter Howkins [Mon, 12 Mar 2012 00:27:41 +0000 (00:27 +0000)]
-fpermissive to allow gcc to compile old C++
Peter Howkins [Mon, 12 Mar 2012 00:26:40 +0000 (00:26 +0000)]
-fpermissive to allow gcc to compile old C++
Peter Howkins [Mon, 12 Mar 2012 00:25:41 +0000 (00:25 +0000)]
-fpermissive to allow gcc to compile old C++
Peter Howkins [Mon, 12 Mar 2012 00:25:04 +0000 (00:25 +0000)]
Use socklen_t type for argument for getsockname()
Peter Howkins [Mon, 12 Mar 2012 00:23:06 +0000 (00:23 +0000)]
Add int type to previously untyped variable
Peter Howkins [Mon, 12 Mar 2012 00:18:13 +0000 (00:18 +0000)]
On linux use a iso C (89) stdarg variable argument function.
Gcc no longer supports old style varargs.h
Peter Howkins [Mon, 12 Mar 2012 00:14:33 +0000 (00:14 +0000)]
No easy access to min()/max() macro, rewrite code
Peter Howkins [Mon, 12 Mar 2012 00:06:34 +0000 (00:06 +0000)]
-fpermissive to allow GCC to compile old C++
Peter Howkins [Mon, 12 Mar 2012 00:04:39 +0000 (00:04 +0000)]
No easy access to min() or max() macros, rewrite code to not use them.
Peter Howkins [Sun, 11 Mar 2012 23:58:53 +0000 (23:58 +0000)]
No need to create another version of basename(), there's one available
on Linux
Peter Howkins [Sun, 11 Mar 2012 23:57:12 +0000 (23:57 +0000)]
Linux uses unistd.h not osfcn.h
Peter Howkins [Sun, 11 Mar 2012 23:51:05 +0000 (23:51 +0000)]
Linux also needs cast to char * of NULL
Peter Howkins [Sun, 11 Mar 2012 23:48:57 +0000 (23:48 +0000)]
No osfcn.h available on linux
Peter Howkins [Sun, 11 Mar 2012 23:47:21 +0000 (23:47 +0000)]
Add in wctype.h for widechars
Peter Howkins [Sun, 11 Mar 2012 23:44:52 +0000 (23:44 +0000)]
Bodgy support around including X11/Xos_r.h
Undefine index and rindex first to prevent clashes with tt funcs.
Should be fixed by namespacing local funcs
Peter Howkins [Sun, 11 Mar 2012 23:40:39 +0000 (23:40 +0000)]
-fpermissive to allos GCC to compile old C++
Peter Howkins [Sun, 11 Mar 2012 23:38:55 +0000 (23:38 +0000)]
On Linux initialise tt_strings as () rather than (NULL)
Peter Howkins [Sun, 11 Mar 2012 23:34:37 +0000 (23:34 +0000)]
-fpermissive to allow GCC to compile old C++
Peter Howkins [Sun, 11 Mar 2012 23:33:09 +0000 (23:33 +0000)]
-fpermissive to allow gcc to compile old C++
Peter Howkins [Sun, 11 Mar 2012 23:32:08 +0000 (23:32 +0000)]
-fpermissive to allow gcc to compile old C++
Peter Howkins [Sun, 11 Mar 2012 19:12:51 +0000 (19:12 +0000)]
On linux it seems that _XTyname() only takes one argument, no buffer required.
Peter Howkins [Sun, 11 Mar 2012 19:00:31 +0000 (19:00 +0000)]
Add in -fpermissive to handle old pre standard C++
Peter Howkins [Sun, 11 Mar 2012 18:16:10 +0000 (18:16 +0000)]
On linux no generic.h available, and can use the C++ style delete array
Peter Howkins [Sun, 11 Mar 2012 18:15:12 +0000 (18:15 +0000)]
Add linux to list of platforms that are object to those definitions
Peter Howkins [Sun, 11 Mar 2012 18:08:03 +0000 (18:08 +0000)]
Bodgy fix to not being able to find RADIXCHAR define, use '.' instead.
Come back to this later.
Peter Howkins [Sun, 11 Mar 2012 18:04:30 +0000 (18:04 +0000)]
Do not re-prototype strdup()
Peter Howkins [Sun, 11 Mar 2012 18:02:24 +0000 (18:02 +0000)]
Do not re-prototype strdup()
Peter Howkins [Sun, 11 Mar 2012 17:46:01 +0000 (17:46 +0000)]
Due to glibc not have a 'constant' stderr reference, on linux set the error
reporting var at runtime.
Peter Howkins [Sun, 11 Mar 2012 17:33:41 +0000 (17:33 +0000)]
On Linux do not re prototype strdup()
Peter Howkins [Sun, 11 Mar 2012 16:33:18 +0000 (16:33 +0000)]
Add in extra args required for open() on Linux
Peter Howkins [Sun, 11 Mar 2012 16:17:39 +0000 (16:17 +0000)]
Also use internal __fds_bits instead of fds_bits