0763541848
* move win32/config0.h -> config/config_windows0.h * move win32/stdint.h -> msvc/stdint.h * move posix/defines.h -> config/config_unix.h * add config.h - brings in config_(windows|unix).h as required * add config.h to *.cpp * Self-contain FFmpegSource2 with required function defines wrapped with __UNIX__ instead of the now removed defines.h. * Edit aegisub_vs2008.vcproj to remove explicit inclusion of config.h, also change VCPreBuildEventTool to create windows_config.h from windows_config0.h. Add msvc to include path. * Change configure to create ./acconf.h instead of posix/acconf.h This will allow us to create a more standard and platform agnostic way of configuration aegsisub during build time. Originally committed to SVN as r2621.
38 lines
727 B
C
38 lines
727 B
C
#pragma once
|
|
|
|
#ifndef _DEFINES_H
|
|
#define _DEFINES_H
|
|
|
|
#define __AVISYNTH_H__
|
|
#define WX_PRECOMP
|
|
|
|
#include "acconf.h"
|
|
|
|
#ifdef HAVE_STDINT_H
|
|
#define __STDC_CONSTANT_MACROS 1
|
|
#include <stdint.h>
|
|
#endif
|
|
#ifdef HAVE_INTTYPES_H
|
|
#include <inttypes.h>
|
|
#endif
|
|
|
|
#include <stdwx.h>
|
|
|
|
#ifdef WITH_FFMPEGSOURCE
|
|
/* FIXME: For FFMPEGSource2, this needs to be fixed but should be
|
|
harmless for the rest of aegisub. */
|
|
#define _snprintf snprintf
|
|
#define _ftelli64 ftello
|
|
#define _fseeki64 fseeko
|
|
#endif
|
|
|
|
// These shouldn't be needed any longer, if there are
|
|
// any occurrences of __int64 replace them with long long.
|
|
//typedef int64_t __int64;
|
|
//typedef uint64_t __uint64;
|
|
#define abs64 llabs
|
|
|
|
#include "res.h"
|
|
|
|
#endif /* _DEFINES_H */
|
|
|