Support building on Zeta with BeIDE or make.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20942 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Pfeiffer 2007-05-01 07:54:40 +00:00
parent d1c710a7d8
commit f57432d8c2
3 changed files with 14 additions and 2 deletions

View File

@ -73,9 +73,12 @@ GraphicsDriver::setupData(BFile *spool_file)
// already initialized
return true;
}
print_file_header pfh;
#ifndef __ZETA__
print_file_header pfh;
#else
BPrintJob::print_file_header pfh;
#endif
spool_file->Seek(0, SEEK_SET);
spool_file->Read(&pfh, sizeof(pfh));

View File

@ -28,6 +28,7 @@ THE SOFTWARE.
*/
#include <stdio.h>
#include <Picture.h>
#include <PrintJob.h>
#include "PrintJobReader.h"
@ -103,7 +104,11 @@ PrintJobReader::PrintJobReader(BFile* jobFile)
, fNumberOfPages(-1)
, fPageIndex(NULL)
{
#ifndef __ZETA__
print_file_header header;
#else
BPrintJob::print_file_header header;
#endif
fJobFile.Seek(0, SEEK_SET);
if (fJobFile.Read(&header, sizeof(header)) == sizeof(header) &&
fJobSettings.Unflatten(&fJobFile) == B_OK) {

View File

@ -103,7 +103,11 @@ static bool InList(const char* list[], const char* name) {
void AddFields(BMessage* to, const BMessage* from, const char* excludeList[], const char* includeList[], bool overwrite) {
if (to == from) return;
#ifndef __ZETA__
char* name;
#else
const char* name;
#endif
type_code type;
int32 count;
for (int32 i = 0; from->GetInfo(B_ANY_TYPE, i, &name, &type, &count) == B_OK; i ++) {