Changeset 4322


Ignore:
Timestamp:
Feb 7, 2010, 6:01:10 PM (7 years ago)
Author:
sam
Message:

Do not use htons/htonl in makefont.c, since we already have hton16/hton32
which do not require to initialise winsock on Windows. Addresses #48.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/tools/makefont.c

    r4149 r4322  
    3131#include <pango/pangoft2.h>
    3232
     33#include "caca_stubs.h"
    3334#include "caca.h"
    3435
     
    435436static int printf_u32(char const *fmt, uint32_t i)
    436437{
    437     uint32_t ni = htonl(i);
     438    uint32_t ni = hton32(i);
    438439    return printf_hex(fmt, (uint8_t *)&ni, 4);
    439440}
     
    441442static int printf_u16(char const *fmt, uint16_t i)
    442443{
    443     uint16_t ni = htons(i);
     444    uint16_t ni = hton16(i);
    444445    return printf_hex(fmt, (uint8_t *)&ni, 2);
    445446}
Note: See TracChangeset for help on using the changeset viewer.