Changeset 17edec7 in git


Ignore:
Timestamp:
07/01/14 23:09:33 (6 years ago)
Author:
Olly Betts <olly@…>
Branches:
line_contents, master, stereo, travis-osx
Children:
710bd97
Parents:
0b25b30
Message:

src/img.c: In non-hosted mode, check that int is at least 32 bits,
and if not, use long. In practice, platforms with 16 bit int are
mostly obsolete, but it's not hard to be portable here.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r0b25b30 r17edec7  
     1Tue Jan 07 23:08:21 GMT 2014  Olly Betts <olly@survex.com>
     2
     3        * src/img.c: In non-hosted mode, check that int is at least 32 bits,
     4          and if not, use long.  In practice, platforms with 16 bit int are
     5          mostly obsolete, but it's not hard to be portable here.
     6
    17Tue Jan 07 22:05:58 GMT 2014  Olly Betts <olly@survex.com>
    28
  • src/img.c

    r0b25b30 r17edec7  
    11/* img.c
    22 * Routines for reading and writing Survex ".3d" image files
    3  * Copyright (C) 1993-2004,2005,2006,2010,2011,2013 Olly Betts
     3 * Copyright (C) 1993-2004,2005,2006,2010,2011,2013,2014 Olly Betts
    44 *
    55 * This program is free software; you can redistribute it and/or modify
     
    3333#define TIMENA "?"
    3434#ifdef IMG_HOSTED
     35# define INT32_T int32_t
    3536# include "debug.h"
    3637# include "filelist.h"
     
    3940# include "useful.h"
    4041# define TIMEFMT msg(/*%a,%Y.%m.%d %H:%M:%S %Z*/107)
    41 # ifndef INT32_T
     42#else
     43# ifdef HAVE_STDINT_H
     44#  include <stdint.h>
    4245#  define INT32_T int32_t
     46# else
     47#  include <limits.h>
     48#  if INT_MAX >= 2147483647
     49#   define INT32_T int
     50#  else
     51#   define INT32_T long
     52#  endif
    4353# endif
    44 #else
    45 # define INT32_T int
    4654# define TIMEFMT "%a,%Y.%m.%d %H:%M:%S %Z"
    4755# define EXT_SVX_3D "3d"
Note: See TracChangeset for help on using the changeset viewer.