mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2025-05-10 08:40:41 +08:00
15 lines
290 B
C
15 lines
290 B
C
int fd, len_header;
|
|
|
|
...
|
|
|
|
if (read (fd, &len_header, sizeof (int)) == -1)
|
|
goto error;
|
|
#if MGUI_BYTEORDER == MGUI_BIG_ENDIAN
|
|
/* If the native system is big endian, calling ArchSwap32 to
|
|
* swap the bytes.
|
|
*/
|
|
len_header = ArchSwap32 (len_header);
|
|
#endif
|
|
|
|
...
|