* We cannot include the SystemKeymap.h with the tool that is supposed to
generate it. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36370 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -19,8 +19,10 @@
|
||||
#include <ByteOrder.h>
|
||||
#include <File.h>
|
||||
|
||||
#include "SystemKeymap.h"
|
||||
#if (defined(__BEOS__) || defined(__HAIKU__))
|
||||
# include "SystemKeymap.h"
|
||||
// generated by the build system
|
||||
#endif
|
||||
|
||||
|
||||
// Private only at this point, as we might want to improve the dead key
|
||||
@@ -129,6 +131,7 @@ BKeymap::SetToCurrent()
|
||||
status_t
|
||||
BKeymap::SetToDefault()
|
||||
{
|
||||
#if (defined(__BEOS__) || defined(__HAIKU__))
|
||||
fKeys = kSystemKeymap;
|
||||
fCharsSize = kSystemKeyCharsSize;
|
||||
|
||||
@@ -140,6 +143,10 @@ BKeymap::SetToDefault()
|
||||
|
||||
memcpy(fChars, kSystemKeyChars, fCharsSize);
|
||||
return B_OK;
|
||||
#else // ! __BEOS__
|
||||
fprintf(stderr, "Unsupported operation on this platform!\n");
|
||||
exit(1);
|
||||
#endif // ! __BEOS__
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user