ObjFW  Check-in [6baf51ebda]

Overview
Comment:OFSystemInfo: Fix a stupid typo
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 6baf51ebda47ad697f27f0f1c4cbfe2cb5d895345eabd5c7ed7eaada3ff7ba57
User & Date: js on 2016-03-12 13:12:02
Other Links: manifest | tags
Context
2016-03-12
16:30
Don't require C99 in public headers check-in: 1664de811f user: js tags: trunk
13:12
OFSystemInfo: Fix a stupid typo check-in: 6baf51ebda user: js tags: trunk
11:55
OFTCPSocket+SOCKS5.m: Use send/recv directly check-in: f8422ce7e9 user: js tags: trunk
Changes

Modified src/OFSystemInfo.m from [6bbf4e4af0] to [b2e536c6d0].

70
71
72
73
74
75
76
77
78
79
80
81
82
83
84

# if defined(OF_X86_64_ASM)
	__asm__(
	    "cpuid"
	    : "=a"(regs.eax), "=b"(regs.ebx), "=c"(regs.ecx), "=d"(regs.edx)
	    : "a"(eax), "c"(ecx)
	);
# elif deifned(OF_X86_ASM)
	/*
	 * This workaround is required by GCC when using -fPIC, as ebx is a
	 * special register in PIC code. Yes, GCC is indeed not able to just
	 * push a register onto the stack before the __asm__ block and to pop
	 * it afterwards.
	 */
	__asm__(







|







70
71
72
73
74
75
76
77
78
79
80
81
82
83
84

# if defined(OF_X86_64_ASM)
	__asm__(
	    "cpuid"
	    : "=a"(regs.eax), "=b"(regs.ebx), "=c"(regs.ecx), "=d"(regs.edx)
	    : "a"(eax), "c"(ecx)
	);
# elif defined(OF_X86_ASM)
	/*
	 * This workaround is required by GCC when using -fPIC, as ebx is a
	 * special register in PIC code. Yes, GCC is indeed not able to just
	 * push a register onto the stack before the __asm__ block and to pop
	 * it afterwards.
	 */
	__asm__(