From 07a68dbb7a7cf1c400767c2f1050ec1ab40f750f Mon Sep 17 00:00:00 2001 From: rogerman Date: Tue, 10 Jan 2017 23:57:47 -0800 Subject: [PATCH] Cocoa Port: Clean out utilities.c a little bit more. --- desmume/src/frontend/cocoa/audiosamplegenerator.cpp | 1 + desmume/src/frontend/cocoa/audiosamplegenerator.h | 1 + desmume/src/frontend/cocoa/utilities.c | 9 +-------- desmume/src/frontend/cocoa/utilities.h | 1 - 4 files changed, 3 insertions(+), 9 deletions(-) diff --git a/desmume/src/frontend/cocoa/audiosamplegenerator.cpp b/desmume/src/frontend/cocoa/audiosamplegenerator.cpp index d784bffea..bfa944d1d 100644 --- a/desmume/src/frontend/cocoa/audiosamplegenerator.cpp +++ b/desmume/src/frontend/cocoa/audiosamplegenerator.cpp @@ -22,6 +22,7 @@ #include "audiosamplegenerator.h" #include +#include #include "cocoa_globals.h" #define NUM_INTERNAL_NOISE_SAMPLES 32 diff --git a/desmume/src/frontend/cocoa/audiosamplegenerator.h b/desmume/src/frontend/cocoa/audiosamplegenerator.h index ead4c8cc8..45df90d16 100644 --- a/desmume/src/frontend/cocoa/audiosamplegenerator.h +++ b/desmume/src/frontend/cocoa/audiosamplegenerator.h @@ -19,6 +19,7 @@ #define _AUDIO_SAMPLE_GENERATOR_ #include +#include class AudioGenerator diff --git a/desmume/src/frontend/cocoa/utilities.c b/desmume/src/frontend/cocoa/utilities.c index 09968abe8..7edaec658 100644 --- a/desmume/src/frontend/cocoa/utilities.c +++ b/desmume/src/frontend/cocoa/utilities.c @@ -16,14 +16,7 @@ */ #include "utilities.h" -#include - -static const uint8_t bits5to8[] = { - 0x00, 0x08, 0x10, 0x19, 0x21, 0x29, 0x31, 0x3A, - 0x42, 0x4A, 0x52, 0x5A, 0x63, 0x6B, 0x73, 0x7B, - 0x84, 0x8C, 0x94, 0x9C, 0xA5, 0xAD, 0xB5, 0xBD, - 0xC5, 0xCE, 0xD6, 0xDE, 0xE6, 0xEF, 0xF7, 0xFF -}; +#include static CFStringRef OSXProductName = NULL; static CFStringRef OSXProductVersion = NULL; diff --git a/desmume/src/frontend/cocoa/utilities.h b/desmume/src/frontend/cocoa/utilities.h index 551394964..6025205b6 100644 --- a/desmume/src/frontend/cocoa/utilities.h +++ b/desmume/src/frontend/cocoa/utilities.h @@ -18,7 +18,6 @@ #ifndef _COCOA_PORT_UTILITIES_ #define _COCOA_PORT_UTILITIES_ -#include #include #include