Ingo Weinhold
758b1d0e05
Fixes that make Haiku build with gcc 4. Mainly out of the following
...
categories:
* Missing includes (like <stdlib.h> and <string.h>).
* Linking against $(TARGET_LIBSTDC++) instead of libstdc++.r4.so.
* Local variables shadowing parameters.
* Default parameters in function definitions (as opposed to function
declarations).
* All C++ stuff (nothrow, map, set, vector, min, max,...) must be imported
explicitly from the std:: namespace now.
* "new (sometype)[...]" must read "new sometype[...]", even if sometype is
something like "const char *".
* __FUNCTION__ is no longer a string literal (but a string expression), i.e.
'printf(__FUNCTION__ ": ...\n")' is invalid code.
* A type cast results in a non-lvalue. E.g. "(char *)buffer += bytes"
is an invalid expression.
* "friend class SomeClass" only works when SomeClass is known before.
Otherwise the an inner class with that name is considered as friend.
gcc 4 is much pickier about scopes.
* gcc 4 is generally stricter with respect to type conversions in C.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14878 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-12 23:27:14 +00:00
Ingo Weinhold
338b8dc301
Merged changes from branch build_system_redesign at revision 14573.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14574 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-29 16:27:43 +00:00
Stefano Ceccherini
feee8cf2e2
Added client side implementation of BDirectWindow (haiku). I hope I didn't break the build on Dano. If it's the case, please tell me.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13842 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-28 16:50:32 +00:00
Stefano Ceccherini
5fdea13fa5
Small cleanup, mostly style changes. Fixed a small typo.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13517 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-07 09:29:28 +00:00
Marcus Overhagen
366fdcdfbb
Fixed build of libgame.so on TARGET_PLATFORM= dano or r5 so now
...
we can build MediaKit (which requires replacing libgame.so) for
targets haiku, r5 and dano. For building on Zeta, use platform dano.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13459 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 18:52:18 +00:00
Marcus Overhagen
184dd027c3
adjusted media kit library dependencies to allow compiling for R5
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13454 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 18:05:01 +00:00
Stefano Ceccherini
798fedbf9f
Forgotten stuff: use B_2D_ACCELERATION instead of the value directly
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13066 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-11 16:56:46 +00:00
Stefano Ceccherini
b0250ddde2
use standard api where possible, small cleanups
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13065 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-11 16:51:23 +00:00
Stefano Ceccherini
2defb213d8
Accidentally commented out a funciton, better naming of a command
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13064 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-11 16:27:46 +00:00
Stefano Ceccherini
847254d8ee
BWindowScreen didn't work on r5 anymore. Replaced some stuff with BScreen::ProposeMode()
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13063 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-11 16:21:50 +00:00
Axel Dörfler
ecc2961bee
Fixed warnings and the build.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13000 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 01:23:44 +00:00
Jérôme Duval
8575beb8d6
by Stefano Ceccherini
...
Ifdeffed R5 specific stuff so DirectWindow.cpp and WindowScreen.cpp compile on
haiku too. That doesnt' mean they work there though.
This introduced some warnings which I didn't fix, as they'll go away later.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11982 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-25 13:18:26 +00:00
Stefano Ceccherini
8f8871f95b
Use definitions from WindowPrivate.h and InputServerTypes.h instead of redefining them.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11233 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-03 07:36:27 +00:00
Stefano Ceccherini
6f633eb2a6
Some comments on possible changes, before I forget about them. Compacted some code.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10480 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-17 08:29:08 +00:00
Stefano Ceccherini
d4c31885aa
Renamed sync() to card_sync() to avoid name clashing with the "sync()" function in the new unistd.h. Commented out transparent_blit() to suppress a compiler warning, and added a comment to it.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9069 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-27 08:32:47 +00:00
Stefano Ceccherini
6b06287720
Some "forgotten" cleanups. Added a check for NULL in the constructor which avoids a crash in some cases.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9067 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-27 07:23:16 +00:00
Stefano Ceccherini
17495d0b40
Fixed some spelling errors in some comments and added more of them
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8360 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-09 11:14:31 +00:00
Stefano Ceccherini
3f9ae8a3ce
Looks like SetFullScreen wasn't correct and could crash.
...
Fixed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8295 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-05 07:11:22 +00:00
Jérôme Duval
65de8098bc
added a link in develop/lib
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8198 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-27 22:03:43 +00:00
Stefano Ceccherini
36eaad35e1
Accidentally removed Marcus name from the authors's list
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7113 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-30 08:05:42 +00:00
Stefano Ceccherini
272b2685ed
WindowScreen implemented by Caz and myself, fully working (well, at least with the pageflipper demo) on BeOS R5.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7112 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-30 07:29:49 +00:00
Stefano Ceccherini
a88479e2a9
Should fix the build of libgame.so. It was linking against R5 libmedia.so
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7059 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-23 15:19:03 +00:00
Stefano Ceccherini
bfc3bb1838
Finished SetFullscreen() implementation
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7058 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-23 07:19:07 +00:00
Stefano Ceccherini
09ea309293
A working SetFullscreen() implementation, courthesy of Caz. Added a comment. Enlarged the license section.
...
More to come.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7051 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-22 14:23:50 +00:00
Ingo Weinhold
47ae3f3af6
Added the missing private interface include dir and made the compiler use the R5 interface kit headers for DirectWindow.cpp.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4769 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-19 19:45:19 +00:00
Stefano Ceccherini
cafaa5aa29
Added a BDirectWindow implementation which works with BeOS R5 (at least, with the Chart demo app)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4755 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-18 13:39:39 +00:00
Ingo Weinhold
2386ff94ad
Added missing include.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3854 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-05 12:30:23 +00:00
Ingo Weinhold
6ab18748f3
Removed invocations of UsePublicHeaders, which was a no-op anyway.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3628 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-23 16:53:22 +00:00
shatty
fe5cc7b493
add newline to end of file
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3066 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-14 01:56:41 +00:00
Ingo Weinhold
b816dc1ec6
BDirectWindow defined new reserved virtual slots and left out virtuals defined by the R5 counterpart, which made it binary incompatible. Fixed.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2729 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-16 23:46:02 +00:00
beveloper
de613a80e7
changes submitted by Christopher ML Zumwalt May
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2357 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-06 02:19:29 +00:00
beveloper
65b9e84537
adding the missing Perform() function
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1651 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-25 13:23:24 +00:00
beveloper
9fc7164698
allow building everything without local(tree external) header files beeing
...
used for kernel or kit components
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1630 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-23 20:13:17 +00:00
beveloper
6eaf18596d
updated by Christopher ML Zumwalt May
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1585 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-21 16:53:45 +00:00
beveloper
89e936f711
added missing operator new and operator delete
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1404 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-06 11:39:16 +00:00
beveloper
4703fb5d85
These files have been contributed by Christopher ML Zumwalt May
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1401 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-06 11:31:21 +00:00
beveloper
d2ea858781
add set_mouse_position() that was missing
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@696 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-11 00:55:10 +00:00
beveloper
0b4a36abc9
start with libgame.so
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@695 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-11 00:34:01 +00:00