Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
falkTX committed Oct 28, 2013
1 parent 589b589 commit f295d64
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
3 changes: 2 additions & 1 deletion release/distrib/replay/lib/include/endianness.h
Expand Up @@ -32,11 +32,12 @@
#ifndef __ENDIANNESS_H_
#define __ENDIANNESS_H_

#include <stdint.h>

#if defined(__WIN32__) && !defined(__GCC__)
typedef unsigned __int64 Uint64;
#else
#if defined(__LINUX__) && !defined(__FREEBSD__)
typedef unsigned long long uint64_t;
typedef uint64_t Uint64;
#else
typedef unsigned long long Uint64;
Expand Down
2 changes: 1 addition & 1 deletion release/distrib/replay/lib/include/synth.h
Expand Up @@ -35,6 +35,7 @@
// ------------------------------------------------------
// Includes
#include <math.h>
#include <stdint.h>

#if defined(__STAND_ALONE__)
#if defined(__WINAMP__)
Expand Down Expand Up @@ -75,7 +76,6 @@ typedef unsigned __int64 Uint64;
#else
typedef long long int64;
#if defined(__LINUX__) && !defined(__FREEBSD__)
typedef unsigned long long uint64_t;
typedef uint64_t Uint64;
#else
typedef unsigned long long Uint64;
Expand Down
2 changes: 1 addition & 1 deletion src/samples/aiff/include/aiff.h
Expand Up @@ -34,6 +34,7 @@

// ------------------------------------------------------
// Includes
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
Expand Down Expand Up @@ -67,7 +68,6 @@ typedef int INT32;
typedef unsigned __int64 Uint64;
#else
#if defined(__LINUX__) && !defined(__FREEBSD__)
typedef unsigned long long uint64_t;
typedef uint64_t Uint64;
#else
typedef unsigned long long Uint64;
Expand Down
1 change: 1 addition & 0 deletions src/samples/wav/include/riff.h
Expand Up @@ -23,6 +23,7 @@

#include "ddc.h"

#include <stdint.h>
#include "../../../../release/distrib/replay/lib/include/endianness.h"

#define WAVE_FORMAT_IEEE_FLOAT 0x0003
Expand Down
10 changes: 5 additions & 5 deletions src/ui/xml.cpp
Expand Up @@ -100,19 +100,19 @@ int XML_get_integer(char *section, char *key, char *name, char *value, int *dest

const char *XML_get_value(char *tag, char *essemble, char *name, char *attr)
{
TiXmlHandle *files;
TiXmlHandle *file;
TiXmlElement *files;
TiXmlElement *file;
TiXmlElement *element;
TiXmlHandle hdl(&doc);
const char *value;

files = &hdl.FirstChildElement(tag);
files = hdl.FirstChildElement(tag).ToElement();
if(!files) return(NULL);

file = &files->FirstChildElement(essemble);
file = files->FirstChildElement(essemble);
if(!file) return(NULL);

element = file->Element();
element = file->ToElement();
while(element)
{
if(SDL_strcasecmp(element->Attribute("name"), name) == 0)
Expand Down

0 comments on commit f295d64

Please sign in to comment.