Ignore:
Timestamp:
Apr 19, 2008, 2:42:50 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Remove #include <stdint.h> etc. from "common.h". Instead, make sure that <cucul.h> will provide the C99 types, even if libcaca has been installed.
  • Rename what's left of "common.h" to "stubs.h".
  • Remove all references to erroneous <inttypes.h> from source files.
File:
1 edited

Legend:

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

    r1768 r2299  
    1717
    1818#include "config.h"
    19 #include "common.h"
    2019
    2120#include <stdio.h>
     
    2322#include <stdint.h>
    2423
    25 #if defined(HAVE_ARPA_INET_H)
     24#if defined HAVE_ARPA_INET_H
    2625#   include <arpa/inet.h>
    27 #elif defined(HAVE_NETINET_IN_H)
     26#elif defined HAVE_NETINET_IN_H
    2827#   include <netinet/in.h>
    2928#endif
    3029
    31 #include "cucul.h"
    32 
    3330#include <pango/pango.h>
    3431#include <pango/pangoft2.h>
     32
     33#include "cucul.h"
    3534
    3635/* Split our big strings into chunks of 480 characters, because it is
     
    438437static int printf_u32(char const *fmt, uint32_t i)
    439438{
    440     uint32_t ni = hton32(i);
     439    uint32_t ni = htonl(i);
    441440    return printf_hex(fmt, (uint8_t *)&ni, 4);
    442441}
     
    444443static int printf_u16(char const *fmt, uint16_t i)
    445444{
    446     uint16_t ni = hton16(i);
     445    uint16_t ni = htons(i);
    447446    return printf_hex(fmt, (uint8_t *)&ni, 2);
    448447}
Note: See TracChangeset for help on using the changeset viewer.