* Fixed MP3 playback with libmpg123

* Finally removed the dependency on libstdc++ with TDM GCC, reducing the size of the exe from 153kB to 87kB
This commit is contained in:
Fatbag 2012-06-28 07:00:45 -05:00
parent f00c41f26c
commit 56f6487206
13 changed files with 63 additions and 53 deletions

View file

@ -24,12 +24,12 @@
#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include <memory.h>
#ifndef NOWINDOWS
#include <windows.h>
#endif
#define fhexport __declspec(dllexport)
#ifdef WIN32
#define fhexport __declspec(dllexport)
#else
#define fhexport __attribute__((visibility ("default")))
#endif
struct Asset_t {
uint32_t Group;
@ -68,6 +68,13 @@ struct Sound_t {
namespace File {
inline unsigned GetFileSize(FILE * hFile){
fseek(hFile, 0, SEEK_END);
unsigned FileSize = ftell(hFile);
fseek(hFile, 0, SEEK_SET);
return FileSize;
}
fhexport extern int Error;
fhexport extern size_t FileSize;