~ubuntu-branches/ubuntu/wily/easytag/wily-proposed

« back to all changes in this revision

Viewing changes to src/win32/win32dep.h

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2013-10-11 17:07:47 UTC
  • mfrom: (8.1.4 sid)
  • Revision ID: package-import@ubuntu.com-20131011170747-v6ziegvge268gd67
* Team upload.
* New upstream release (Closes: #701114):
  - Port to and require the most recent GTK+ 2 release (2.24)
  - Allow experimental compilation against GTK+ 3
  - Many memory leaks fixed
  - Remove the upstream Debian and RPM packaging
  - Do not install the ChangeLog
  - FLAC, configure, sign comparison warning and GBase64 fixes
  - New icons
  - Small fixes to allow compilation under mingw
  - Fix overlaid text in scanner legend
  - SIGCHLD handling fix
  - Move configuration files to XDG firectories
  - Configuration file, remove all text, disc number column and
    compiler warning fixes
  - Switch to TagLib for MP4 tag editing and drop libmp4v2 support
  - Fix album artist entry focus chain order
  - Remove Changes tab in about dialog
  - Tidy and internationalize the desktop file
  - Fix many spelling errors and typos
  - Several translation updates
  - Rewrite build system
  - Use intltool for internationalization
  - Drop dependency on libtool
  - Fix segfault when pressing "Apply" in "Load filenames from
    TXT" dialog,
  - Fix predefined genres displayed under legacy systems.
  - Update Polish translation
  - .desktop cleanup
  - Add a new option to trim spaces when renaming files patch
  - Make easytag compile against newest version of libmp4v2
  - File save performance improvement
  - Fix out of bound array access
  - Add Lithuanian translation
* Drop patches applied upstream:
  - desktop.patch
  - taglib.patch
  - fix_segfault_loading_tags_from_txt.patch.patch
  - fix-rm-out-of-bound.patch
* Cherry-pick patch from upstream git to prevent FTBFS due to
  mixed declarations and code in WavPack support
* Depend on intltool >= 0.50.0.
* Use dh --with foo syntax in debian/rules.
* Install NEWS and ChangeLog as upstream changelogs.
* Fix watch file.
* Update Homepage field, the project has moved to gnome.org.
* Convert VCS fields to canonical form.
* Remove obsolete DM-Upload-Allowed: yes field.
* Bump Standards.
* Set compression to xz.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#ifndef _WIN32DEP_H_
24
24
#define _WIN32DEP_H_
25
25
 
 
26
#include <glib.h> /* Needed for G_OS_WIN32. */
 
27
 
 
28
#ifdef G_OS_WIN32
 
29
#include <winsock2.h>
26
30
#include <shlobj.h>
27
 
#include <winsock2.h>
28
31
#include <process.h>
29
32
#include <gtk/gtk.h>
30
 
#include <gdk/gdkevents.h>
 
33
#include <gdk/gdk.h>
 
34
 
 
35
G_BEGIN_DECLS
31
36
 
32
37
#define lstat stat
33
38
#define mkdir(a,b) mkdir(a)
35
40
#define chmod(a,b)
36
41
 
37
42
 
38
 
 
39
 
 
40
43
/*
41
44
 *  PROTOS
42
45
 */
69
72
extern void  ET_Win32_Path_Replace_Backslashes       (gchar *path);
70
73
extern void  ET_Win32_Path_Replace_Slashes           (gchar *path);
71
74
 
72
 
extern int   mkstemp (char *template);
 
75
#ifndef HAVE_MKSTEMP
 
76
#define et_w32_mkstemp mkstemp
 
77
extern gint et_w32_mkstemp (char *template);
 
78
#endif /* HAVE_MKSTEMP */
 
79
 
 
80
#ifndef HAVE_GETTIMEOFDAY
 
81
#define et_w32_gettimeofday gettimeofday
 
82
extern gint et_w32_gettimeofday (struct timeval *tv,
 
83
                                 /*struct timezone */ void *tz);
 
84
#endif /* !HAVE_GETTIMEOFDAY */
 
85
 
 
86
#ifndef HAVE_FTRUNCATE
 
87
#define et_w32_ftruncate ftruncate
 
88
extern gint et_w32_ftruncate (gint fd, off_t length);
 
89
#endif /* !HAVE_FTRUNCATE */
 
90
 
 
91
#ifndef HAVE_TRUNCATE
 
92
#define et_w32_truncate truncate
 
93
extern gint et_w32_truncate (const gchar *path, off_t length);
 
94
#endif /* !HAVE_TRUNCATE */
73
95
 
74
96
/*
75
97
 *  MACROS
78
100
/*
79
101
 *  EasyTAG specific
80
102
 */
81
 
#define DATADIR   weasytag_install_dir()
82
 
#define LIBDIR    weasytag_lib_dir()
 
103
#undef DATADIR
 
104
#undef LIBDIR
 
105
#undef LOCALEDIR
 
106
#define DATADIR weasytag_install_dir()
 
107
#define LIBDIR weasytag_lib_dir()
83
108
#define LOCALEDIR weasytag_locale_dir()
84
109
 
 
110
G_END_DECLS
 
111
 
 
112
#endif /* G_OS_WIN32 */
 
113
 
85
114
#endif /* _WIN32DEP_H_ */
86