Skip to content

Commit

Permalink
Make hash.c dependent on miscellaneous.h and not on general.h
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed Nov 6, 2013
1 parent cf20416 commit 389f255
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
7 changes: 0 additions & 7 deletions general.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include "boolean.h"
#include <stdio.h>
#include <time.h>
#include <limits.h>
#include <setjmp.h>
#include "driver.h"
Expand Down Expand Up @@ -52,15 +51,9 @@
// Platform-specific headers
// PS3
#if defined(__CELLOS_LV2__) && !defined(__PSL1GHT__)
#include <sys/timer.h>
#include "ps3/ps3_input.h"
#endif

// libxenon
#ifdef XENON
#include <time/time.h>
#endif

// Windows
#ifdef _WIN32
#ifdef _XBOX
Expand Down
4 changes: 2 additions & 2 deletions hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
// SHA256 implementation from bSNES. Written by valditx.
//

#include "general.h"
#include "hash.h"
#include <string.h>
#include <stdio.h>
#include "hash.h"
#include "miscellaneous.h"

#define SWAP32(x) ((uint32_t)( \
(((uint32_t)(x) & 0x000000ff) << 24) | \
Expand Down
8 changes: 8 additions & 0 deletions miscellaneous.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@
#ifndef __RARCH_MISCELLANEOUS_H
#define __RARCH_MISCELLANEOUS_H

#if defined(__CELLOS_LV2__) && !defined(__PSL1GHT__)
#include <sys/timer.h>
#elif defined(XENON)
#include <time/time.h>
#else
#include <time.h>
#endif

#include "retroarch_logger.h"

#ifndef max
Expand Down

0 comments on commit 389f255

Please sign in to comment.