~ubuntu-branches/debian/sid/claws-mail/sid

« back to all changes in this revision

Viewing changes to src/common/w32lib.h

  • Committer: Package Import Robot
  • Author(s): Ricardo Mones
  • Date: 2015-08-18 16:37:25 UTC
  • mfrom: (1.3.7)
  • Revision ID: package-import@ubuntu.com-20150818163725-1it32n9mzqkwy2ef
Tags: 3.12.0-1
* New upstream release:
- 'cannot reorganize mailboxes' (Closes: #777208)
- 'dropdown menu bar has disappeared…'(Closes: #778886)
- 'depends on plugins libraries'  (Closes: #779824)
- 'new upstream version (3.12.0)…' (Closes: #793665)
* 14CVE_2010_5109.patch, 15fix_crash_open_folder.patch,
  13desktop_file_categories.patch
- Remove patches applied upstream
* debian/control, debian/copyright, debian/claws-mail-managesieve*
- Add managesieve plugin (new in this release)
* debian/rules
- Set perl-plugin manpage release version automatically
* 12fix_manpage_header.patch
- Update patch to cope with upstream changes
* debian/control, debian/watch
- Update VCS-* and watch URLs (thanks Julian Wollrath)

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
#include <stdio.h>
77
77
 
78
78
#ifdef __MINGW32__
79
 
#include <_mingw.h>
80
 
#define MINGW32_VERSION (__MINGW32_MAJOR_VERSION * 100 \
 
79
# include <_mingw.h>
 
80
# define MINGW32_VERSION (__MINGW32_MAJOR_VERSION * 100 \
81
81
                         + __MINGW32_MINOR_VERSION)
82
 
#include <wchar.h>
83
 
#include <dirent.h>
84
 
#include <sys/time.h>
85
 
#endif
 
82
# define MINGW64_VERSION (__MINGW64_VERSION_MAJOR * 100 \
 
83
                         + __MINGW64_VERSION_MINOR)
 
84
# include <wchar.h>
 
85
# include <dirent.h>
 
86
# include <sys/time.h>
 
87
# if MINGW64_VERSION >= 200
 
88
#  include <sys/types.h>
 
89
# endif
 
90
#endif /* __MINGW32__ */
 
91
 
 
92
#include <glib/gstdio.h>
86
93
 
87
94
/* Mingw32 3.4.4 defines interface to struct and thus breaks our own
88
95
   use of that symbol.  Undef it here. */
123
130
 
124
131
/* functions */
125
132
/*** str ***/
 
133
#if MINGW64_VERSION < 200
126
134
int strcasecmp( const char *s1, const char *s2 );
127
 
 
128
135
int strncasecmp( const char *s1, const char *s2, size_t n );
 
136
#endif
129
137
 
130
138
/*** dir ***/
131
139
#ifndef __MINGW32__
161
169
 
162
170
#endif /* !__MINGW32__ */
163
171
 
164
 
 
165
 
DIR *opendir( const char *name );
166
 
int closedir( DIR *dir );
167
 
struct dirent *readdir( DIR *dir );
168
 
 
169
172
#if defined (__MINGW32__) && MINGW32_VERSION < 312
 
173
# if MINGW64_VERSION < 200
170
174
struct timezone {
171
175
  int tz_minuteswest;
172
176
  int tz_dsttime;
173
177
};
 
178
# endif
174
179
#endif
175
180
 
176
181
/*** stat ***/
177
 
int lstat( const char *file_name, struct stat *buf );
 
182
int lstat( const char *file_name, GStatBuf *buf );
178
183
 
179
184
/*** sys/wait ***/
180
185
pid_t waitpid( pid_t pid, int *status, int options );
181
186
 
182
187
/*** sys/time ***/
183
188
#if ! defined (__MINGW32__) || MINGW32_VERSION < 312
 
189
# if MINGW64_VERSION < 200
184
190
int gettimeofday( struct timeval *tv, struct timezone *tz );
 
191
# endif
185
192
#endif
186
193
 
187
194
/*** unistd ***/
193
200
/*** stdlib ***/
194
201
long int random( void );
195
202
void srandom( unsigned int seed );
 
203
#if MINGW64_VERSION < 200
196
204
int truncate( const char *path, off_t length );
 
205
#endif
197
206
 
198
207
/*** signal ***/
199
208
int kill( pid_t pid, int sig );
200
209
 
201
210
/*** stdio ***/
 
211
#if MINGW64_VERSION < 200
202
212
FILE *popen( const char *command, const char *type );
203
213
int pclose( FILE *stream );
 
214
#endif
204
215
 
205
216
/*** w32_account.c ***/
206
217
int w32_is_administrator (void);