Changeset 15227


Ignore:
Timestamp:
2009-04-14T16:54:34+02:00 (9 years ago)
Author:
florian
Message:

[tools] more cygwin related build fixes

Location:
trunk/tools/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/include/byteswap.h

    r4867 r15227  
    1 #ifdef __linux__ 
     1#if defined(__linux__) || defined(__CYGWIN__)  
    22#include_next <byteswap.h> 
    33#endif 
  • trunk/tools/include/endian.h

    r5104 r15227  
    22#define __endian_compat_h 
    33 
    4 #if defined(__linux__) 
     4#if defined(__linux__) || defined(__CYGWIN__) 
    55#include <byteswap.h> 
    66#include_next <endian.h> 
  • trunk/tools/include/getline.h

    r4867 r15227  
    4141getline(char **outbuf, size_t *outsize, FILE *fp) 
    4242{ 
    43         char *buf; 
    4443        size_t len; 
    4544 
     45#ifndef __CYGWIN__ 
     46        char *buf; 
    4647        buf = fgetln(fp, &len); 
     48#else 
     49        char buf[512]; 
     50        fgets(buf, sizeof(buf), fp);     
     51        len = strlen(buf); 
     52#endif 
    4753        if (buf == NULL) 
    4854                return (-1); 
Note: See TracChangeset for help on using the changeset viewer.