Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 335337 | Differences between
and this patch

Collapse All | Expand All

(-)./Lib/Makefile (-1 / +1 lines)
Lines 41-47 Link Here
41
# to define LITT_ENDIAN on little endian machines (intel)
41
# to define LITT_ENDIAN on little endian machines (intel)
42
# checks for sizeof(long)=4, sizeof(short)=2, sizeof(int)=4
42
# checks for sizeof(long)=4, sizeof(short)=2, sizeof(int)=4
43
defendian.h: myconf 
43
defendian.h: myconf 
44
	myconf
44
	./myconf
45
45
46
adf_nativ.o: ${NATIV_DIR}/adf_nativ.c ${NATIV_DIR}/adf_nativ.h
46
adf_nativ.o: ${NATIV_DIR}/adf_nativ.c ${NATIV_DIR}/adf_nativ.h
47
	$(CC) ${CFLAGS} -c ${NATIV_DIR}/adf_nativ.c
47
	$(CC) ${CFLAGS} -c ${NATIV_DIR}/adf_nativ.c
(-)./Lib/myconf (-4 / +4 lines)
Lines 31-47 Link Here
31
gcc myctest.c -o myctest
31
gcc myctest.c -o myctest
32
rm myctest.c
32
rm myctest.c
33
33
34
if [ `myctest |cut -d' ' -f 1` != 4 ]
34
if [ `./myctest |cut -d' ' -f 1` != 4 ]
35
    then echo "Error : sizeof(long)!=4"
35
    then echo "Error : sizeof(long)!=4"
36
fi
36
fi
37
if [ `myctest |cut -d' ' -f 2` != 2 ]
37
if [ `./myctest |cut -d' ' -f 2` != 2 ]
38
    then echo "Error : sizeof(short)!=2"
38
    then echo "Error : sizeof(short)!=2"
39
fi
39
fi
40
if [ `myctest |cut -d' ' -f 3` != 4 ]
40
if [ `./myctest |cut -d' ' -f 3` != 4 ]
41
    then echo "Error  :sizeof(int)!=4"
41
    then echo "Error  :sizeof(int)!=4"
42
fi
42
fi
43
43
44
if [ `myctest |cut -d' ' -f 4` = LITTLE ]
44
if [ `./myctest |cut -d' ' -f 4` = LITTLE ]
45
    then 
45
    then 
46
    echo "#ifndef LITT_ENDIAN" >defendian.h
46
    echo "#ifndef LITT_ENDIAN" >defendian.h
47
    echo "#define LITT_ENDIAN 1" >>defendian.h 
47
    echo "#define LITT_ENDIAN 1" >>defendian.h 

Return to bug 335337