oweals/cde.git
12 years agoUse C++ linker
Peter Howkins [Mon, 12 Mar 2012 15:41:09 +0000 (15:41 +0000)]
Use C++ linker

12 years agoLinux doesn't allow open() with O_CREAT without permission flags anymore.
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.

12 years ago-fpermissive to allow gcc to compile old C++
Peter Howkins [Mon, 12 Mar 2012 15:19:36 +0000 (15:19 +0000)]
-fpermissive to allow gcc to compile old C++

12 years ago-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++

12 years agoSet untyped variable to int
Peter Howkins [Mon, 12 Mar 2012 15:15:38 +0000 (15:15 +0000)]
Set untyped variable to int

12 years agoSetting const variable with no type to 'int' (likely the default the
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)

12 years agoUse C++ linker
Peter Howkins [Mon, 12 Mar 2012 14:48:23 +0000 (14:48 +0000)]
Use C++ linker

12 years agoUse C++ linker
Peter Howkins [Mon, 12 Mar 2012 14:42:58 +0000 (14:42 +0000)]
Use C++ linker

12 years agouse C++ linker
Peter Howkins [Mon, 12 Mar 2012 14:40:34 +0000 (14:40 +0000)]
use C++ linker

12 years agoUse C++ linker
Peter Howkins [Mon, 12 Mar 2012 14:37:47 +0000 (14:37 +0000)]
Use C++ linker

12 years agoAdd linux to list of platforms that use that form of memset()
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()

12 years agoLink with C++ linker
Peter Howkins [Mon, 12 Mar 2012 12:14:03 +0000 (12:14 +0000)]
Link with C++ linker

12 years agoOn linux use __fds_bits instead of fds_bits
Peter Howkins [Mon, 12 Mar 2012 12:12:41 +0000 (12:12 +0000)]
On linux use __fds_bits instead of fds_bits

12 years agoLink with C++ linker
Peter Howkins [Mon, 12 Mar 2012 12:07:09 +0000 (12:07 +0000)]
Link with C++ linker

12 years ago-fpermissive to allow old C++ to compile on gcc
Peter Howkins [Mon, 12 Mar 2012 12:04:55 +0000 (12:04 +0000)]
-fpermissive to allow old C++ to compile on gcc

12 years agoOn Linux no access to pre iso C varargs.h
Peter Howkins [Mon, 12 Mar 2012 11:56:11 +0000 (11:56 +0000)]
On Linux no access to pre iso C varargs.h

12 years agoLink with C++ linker
Peter Howkins [Mon, 12 Mar 2012 11:45:18 +0000 (11:45 +0000)]
Link with C++ linker

12 years agoLink with C++ linker
Peter Howkins [Mon, 12 Mar 2012 11:33:49 +0000 (11:33 +0000)]
Link with C++ linker

12 years agoLink with C++ linker
Peter Howkins [Mon, 12 Mar 2012 11:27:37 +0000 (11:27 +0000)]
Link with C++ linker

12 years agoLinux has the same value for ENOTSUP as another var, therefore protect one
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().

12 years agoLink with C++ linker
Peter Howkins [Mon, 12 Mar 2012 11:19:46 +0000 (11:19 +0000)]
Link with C++ linker

12 years agoLink with C++ linker
Peter Howkins [Mon, 12 Mar 2012 11:19:04 +0000 (11:19 +0000)]
Link with C++ linker

12 years agoLink with C++ linker
Peter Howkins [Mon, 12 Mar 2012 11:17:27 +0000 (11:17 +0000)]
Link with C++ linker

12 years agoLink with C++ linker
Peter Howkins [Mon, 12 Mar 2012 11:16:41 +0000 (11:16 +0000)]
Link with C++ linker

12 years agoLink with C++ linker
Peter Howkins [Mon, 12 Mar 2012 11:11:10 +0000 (11:11 +0000)]
Link with C++ linker

12 years agoLink with C++ linker
Peter Howkins [Mon, 12 Mar 2012 11:01:17 +0000 (11:01 +0000)]
Link with C++ linker

12 years agoAdd in freetype directory to inlude path
Peter Howkins [Mon, 12 Mar 2012 10:41:53 +0000 (10:41 +0000)]
Add in freetype directory to inlude path

12 years agoOn Linux when linking against a C++ library the whole program must be linked
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.

12 years agoWhen linking against libtt (a C++ lib) the link stage should use the C++
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

12 years agoWhen linking against C++ libraries gcc insists on using 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

12 years agoOn Linux don't redefine the prototypes to malloc() and realloc() to the wrong
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.

12 years agoLinux is a unistdh platform not an osfcn.h
Peter Howkins [Mon, 12 Mar 2012 00:35:06 +0000 (00:35 +0000)]
Linux is a unistdh platform not an osfcn.h

12 years agolinux is a unistd.h platform not a 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

12 years ago-fpermissive to allow gcc to compile old C++
Peter Howkins [Mon, 12 Mar 2012 00:32:10 +0000 (00:32 +0000)]
-fpermissive to allow gcc to compile old C++

12 years agoDo not redefine prototype of exit() under linux
Peter Howkins [Mon, 12 Mar 2012 00:31:10 +0000 (00:31 +0000)]
Do not redefine prototype of exit() under linux

12 years agoAdd <unistd.h> include for getopt()
Peter Howkins [Mon, 12 Mar 2012 00:29:37 +0000 (00:29 +0000)]
Add <unistd.h> include for getopt()

12 years ago-fpermissive to allow gcc to compile old C++
Peter Howkins [Mon, 12 Mar 2012 00:27:41 +0000 (00:27 +0000)]
-fpermissive to allow gcc to compile old C++

12 years ago-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++

12 years ago-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++

12 years agoUse socklen_t type for argument for getsockname()
Peter Howkins [Mon, 12 Mar 2012 00:25:04 +0000 (00:25 +0000)]
Use socklen_t type for argument for getsockname()

12 years agoAdd int type to previously untyped variable
Peter Howkins [Mon, 12 Mar 2012 00:23:06 +0000 (00:23 +0000)]
Add int type to previously untyped variable

12 years agoOn linux use a iso C (89) stdarg variable argument function.
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

12 years agoNo easy access to min()/max() macro, rewrite code
Peter Howkins [Mon, 12 Mar 2012 00:14:33 +0000 (00:14 +0000)]
No easy access to min()/max() macro, rewrite code

12 years ago-fpermissive to allow GCC to compile old C++
Peter Howkins [Mon, 12 Mar 2012 00:06:34 +0000 (00:06 +0000)]
-fpermissive to allow GCC to compile old C++

12 years agoNo easy access to min() or max() macros, rewrite code to not use them.
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.

12 years agoNo need to create another version of basename(), there's one available
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

12 years agoLinux uses unistd.h not osfcn.h
Peter Howkins [Sun, 11 Mar 2012 23:57:12 +0000 (23:57 +0000)]
Linux uses unistd.h not osfcn.h

12 years agoLinux also needs cast to char * of NULL
Peter Howkins [Sun, 11 Mar 2012 23:51:05 +0000 (23:51 +0000)]
Linux also needs cast to char * of NULL

12 years agoNo osfcn.h available on linux
Peter Howkins [Sun, 11 Mar 2012 23:48:57 +0000 (23:48 +0000)]
No osfcn.h available on linux

12 years agoAdd in wctype.h for widechars
Peter Howkins [Sun, 11 Mar 2012 23:47:21 +0000 (23:47 +0000)]
Add in wctype.h for widechars

12 years agoBodgy support around including X11/Xos_r.h
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

12 years ago-fpermissive to allos GCC to compile old C++
Peter Howkins [Sun, 11 Mar 2012 23:40:39 +0000 (23:40 +0000)]
-fpermissive to allos GCC to compile old C++

12 years agoOn Linux initialise tt_strings as () rather than (NULL)
Peter Howkins [Sun, 11 Mar 2012 23:38:55 +0000 (23:38 +0000)]
On Linux initialise tt_strings as () rather than (NULL)

12 years ago-fpermissive to allow GCC to compile old C++
Peter Howkins [Sun, 11 Mar 2012 23:34:37 +0000 (23:34 +0000)]
-fpermissive to allow GCC to compile old C++

12 years ago-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++

12 years ago-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++

12 years agoOn linux it seems that _XTyname() only takes one argument, no buffer required.
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.

12 years agoAdd in -fpermissive to handle old pre standard C++
Peter Howkins [Sun, 11 Mar 2012 19:00:31 +0000 (19:00 +0000)]
Add in -fpermissive to handle old pre standard C++

12 years agoOn linux no generic.h available, and can use the C++ style delete array
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

12 years agoAdd linux to list of platforms that are object to those definitions
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

12 years agoBodgy fix to not being able to find RADIXCHAR define, use '.' instead.
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.

12 years agoDo not re-prototype strdup()
Peter Howkins [Sun, 11 Mar 2012 18:04:30 +0000 (18:04 +0000)]
Do not re-prototype strdup()

12 years agoDo not re-prototype strdup()
Peter Howkins [Sun, 11 Mar 2012 18:02:24 +0000 (18:02 +0000)]
Do not re-prototype strdup()

12 years agoDue to glibc not have a 'constant' stderr reference, on linux set the error
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.

12 years agoOn Linux do not re prototype strdup()
Peter Howkins [Sun, 11 Mar 2012 17:33:41 +0000 (17:33 +0000)]
On Linux do not re prototype strdup()

12 years agoAdd in extra args required for open() on Linux
Peter Howkins [Sun, 11 Mar 2012 16:33:18 +0000 (16:33 +0000)]
Add in extra args required for open() on Linux

12 years agoAlso use internal __fds_bits instead of fds_bits
Peter Howkins [Sun, 11 Mar 2012 16:17:39 +0000 (16:17 +0000)]
Also use internal __fds_bits instead of fds_bits

12 years agoOn linux do not prototype strdup()
Peter Howkins [Sun, 11 Mar 2012 16:16:00 +0000 (16:16 +0000)]
On linux do not prototype strdup()

12 years agoUndefine SVR4 whilst including #include <X11/Xos_r.h> to prevent sys/byteorder.h
Peter Howkins [Sun, 11 Mar 2012 16:14:04 +0000 (16:14 +0000)]
Undefine SVR4 whilst including #include <X11/Xos_r.h> to prevent sys/byteorder.h
missing header error.

12 years agoUse internal __fds_bit variable on Linux, this doesn't seem great.
Peter Howkins [Sun, 11 Mar 2012 16:05:20 +0000 (16:05 +0000)]
Use internal __fds_bit variable on Linux, this doesn't seem great.

12 years agoAdd a default empty LinuxMachineDefines to the linux conf, makes imake (and many...
Peter Howkins [Sun, 11 Mar 2012 16:00:15 +0000 (16:00 +0000)]
Add a default empty LinuxMachineDefines to the linux conf, makes imake (and many others compile)

12 years agoAdd in exctra freetype include directory
Peter Howkins [Sun, 11 Mar 2012 15:56:24 +0000 (15:56 +0000)]
Add in exctra freetype include directory

12 years agoGCC no longer supports <varargs.h>, change to <stdarg.h>
Peter Howkins [Sun, 11 Mar 2012 14:21:26 +0000 (14:21 +0000)]
GCC no longer supports <varargs.h>, change to <stdarg.h>

12 years agoAdd GNU LGPL headers to all .c .C and .h files
Peter Howkins [Sat, 10 Mar 2012 18:58:32 +0000 (18:58 +0000)]
Add GNU LGPL headers to all .c .C and .h files

12 years agoInitial import of the CDE 2.1.30 sources from the Open Group.
Peter Howkins [Sat, 10 Mar 2012 18:21:40 +0000 (18:21 +0000)]
Initial import of the CDE 2.1.30 sources from the Open Group.