[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeextragear-1/k3b/libk3bdevice
From: Sebastian Trueg <sebastian () trueg ! de>
Date: 2005-03-28 16:38:08
Message-ID: 20050328163808.4E74E630 () office ! kde ! org
[Download RAW message or body]
CVS commit by trueg:
Fixed byteorder checks.
M +10 -12 k3bdevice.cpp 1.31
--- kdeextragear-1/k3b/libk3bdevice/k3bdevice.cpp #1.30:1.31
@@ -61,6 +61,4 @@ typedef unsigned char u8;
#include <stdio.h>
#include <camlib.h>
-#define __BYTE_ORDER BYTE_ORDER
-#define __BIG_ENDIAN BIG_ENDIAN
#define CD_FRAMESIZE_RAW 2352
#endif
@@ -2172,5 +2170,5 @@ void K3bDevice::Device::checkFeatures()
if( len == 12 ) {
kdDebug() << "(K3bDevice::Device) " << blockDeviceName() << " feature: " << \
"CD Mastering" << endl;
-#if __BYTE_ORDER == __BIG_ENDIAN
+#ifdef WORDS_BIGENDIAN
struct cd_mastering_feature {
unsigned char reserved1 : 1;
@@ -2215,5 +2213,5 @@ void K3bDevice::Device::checkFeatures()
if( len == 12 ) {
kdDebug() << "(K3bDevice::Device) " << blockDeviceName() << " feature: " << \
"CD Track At Once" << endl;
-#if __BYTE_ORDER == __BIG_ENDIAN
+#ifdef WORDS_BIGENDIAN
struct cd_track_at_once_feature {
unsigned char reserved1 : 1;
@@ -2300,5 +2298,5 @@ void K3bDevice::Device::checkFeatures()
if( len == 12 ) {
kdDebug() << "(K3bDevice::Device) " << blockDeviceName() << " feature: " << \
"DVD+RW" << endl;
-#if __BYTE_ORDER == __BIG_ENDIAN
+#ifdef WORDS_BIGENDIAN
struct dvd_plus_rw_feature {
unsigned char reserved1 : 7;
@@ -2351,5 +2349,5 @@ void K3bDevice::Device::checkFeatures()
if( len == 12 ) {
kdDebug() << "(K3bDevice::Device) " << blockDeviceName() << " feature: " << \
"DVD-R/-RW Write" << endl;
-#if __BYTE_ORDER == __BIG_ENDIAN
+#ifdef WORDS_BIGENDIAN
struct dvd_r_rw_write_feature {
unsigned char reserved1 : 1;
@@ -2604,5 +2602,5 @@ void K3bDevice::Device::checkFeatures()
{
kdDebug() << "(K3bDevice::Device) " << blockDeviceName() << " feature: " \
<< "DVD+RW" << endl;
-#if __BYTE_ORDER == __BIG_ENDIAN
+#ifdef WORDS_BIGENDIAN
struct dvd_plus_rw_feature {
unsigned char reserved1 : 7;
@@ -2632,5 +2630,5 @@ void K3bDevice::Device::checkFeatures()
{
kdDebug() << "(K3bDevice::Device) " << blockDeviceName() << " feature: " \
<< "DVD+R" << endl;
-#if __BYTE_ORDER == __BIG_ENDIAN
+#ifdef WORDS_BIGENDIAN
struct dvd_plus_r_feature {
unsigned char reserved1 : 7;
@@ -2672,5 +2670,5 @@ void K3bDevice::Device::checkFeatures()
{
kdDebug() << "(K3bDevice::Device) " << blockDeviceName() << " feature: " \
<< "CD Track At Once" << endl;
-#if __BYTE_ORDER == __BIG_ENDIAN
+#ifdef WORDS_BIGENDIAN
struct cd_track_at_once_feature {
unsigned char reserved1 : 1;
@@ -2711,5 +2709,5 @@ void K3bDevice::Device::checkFeatures()
{
kdDebug() << "(K3bDevice::Device) " << blockDeviceName() << " feature: " \
<< "CD Mastering" << endl;
-#if __BYTE_ORDER == __BIG_ENDIAN
+#ifdef WORDS_BIGENDIAN
struct cd_mastering_feature {
unsigned char reserved1 : 1;
@@ -2749,5 +2747,5 @@ void K3bDevice::Device::checkFeatures()
{
kdDebug() << "(K3bDevice::Device) " << blockDeviceName() << " feature: " \
<< "DVD-R/-RW Write" << endl;
-#if __BYTE_ORDER == __BIG_ENDIAN
+#ifdef WORDS_BIGENDIAN
struct dvd_r_rw_write_feature {
unsigned char reserved1 : 1;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic