ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/include/macos_util.h
(Generate patch)

Comparing BasiliskII/src/include/macos_util.h (file contents):
Revision 1.6 by cebix, 2000-07-14T21:42:06Z vs.
Revision 1.7 by cebix, 2000-07-22T16:07:23Z

# Line 251 | Line 251 | extern int FindFreeDriveNumber(int num);
251   extern void MountVolume(void *fh);                                      // Mount volume with given file handle (see sys.h)
252   extern void FileDiskLayout(loff_t size, uint8 *data, loff_t &start_byte, loff_t &real_size);    // Calculate disk image file layout given file size and first 256 data bytes
253  
254 + // Construct four-character-code from string
255 + #define FOURCC(a,b,c,d) (((uint32)(a) << 24) | ((uint32)(b) << 16) | ((uint32)(c) << 8) | (uint32)(d))
256 +
257   // Test if basic MacOS initializations (of the ROM) are done
258   static inline bool HasMacStarted(void)
259   {
260 <        return ReadMacInt32(0xcfc) == 'WLSC';   // Mac warm start flag
260 >        return ReadMacInt32(0xcfc) == FOURCC('W','L','S','C');  // Mac warm start flag
261   }
262  
263   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines