VirtualBox

Changeset 3092 in kBuild


Ignore:
Timestamp:
Oct 11, 2017 5:55:09 PM (7 years ago)
Author:
bird
Message:

cmp.c,cmp_utils.c: 64-bit I/O on windows, please.

Location:
trunk/src/kmk/kmkbuiltin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/kmkbuiltin/cmp.c

    r2113 r3092  
    3535__RCSID("$NetBSD: cmp.c,v 1.15 2006/01/19 20:44:57 garbled Exp $"); */
    3636
     37#ifdef _MSC_VER
     38# define MSC_DO_64_BIT_IO /* for correct off_t */
     39#endif
    3740#include "config.h"
    3841#include <sys/types.h>
     
    4649# include <unistd.h>
    4750#else
    48 # define MSC_DO_64_BIT_IO /* for correct off_t */
    4951# include "mscfakes.h"
    5052#endif
  • trunk/src/kmk/kmkbuiltin/cmp_util.c

    r2591 r3092  
    3636        The Regents of the University of California.  All rights reserved.\n");*/
    3737
     38#ifdef _MSC_VER
     39# define MSC_DO_64_BIT_IO
     40#endif
    3841#include "config.h"
    3942#include <sys/types.h>
     
    5558# endif
    5659#else
    57 # define MSC_DO_64_BIT_IO
    5860# include "mscfakes.h"
    5961#endif
  • trunk/src/kmk/kmkbuiltin/mscfakes.h

    r3060 r3092  
    4848#include "nt/ntstat.h"
    4949#include "nt/ntunlink.h"
    50 #if defined(MSC_DO_64_BIT_IO) && _MSC_VER >= 1400 /* We want 64-bit file lengths here when possible. */
    51 # define off_t __int64
    52 # define lseek _lseeki64
     50#ifdef MSC_DO_64_BIT_IO
     51# if _MSC_VER >= 1400 /* We want 64-bit file lengths here when possible. */
     52#  define off_t __int64
     53#  define lseek _lseeki64
     54# endif
    5355#endif
    5456
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette