aboutsummaryrefslogtreecommitdiffstats
path: root/src/mdaTestTone.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-10 23:09:54 +0000
committerDavid Robillard <d@drobilla.net>2012-08-10 23:09:54 +0000
commit78469da1b0554ccca9578242f54114770827c46e (patch)
tree1982da50af23c2662ad6899c2b53d9e5e560c1d9 /src/mdaTestTone.cpp
parentc0aa37784f5f8add7dc7ac9cd3460549026686c5 (diff)
downloadmda.lv2-78469da1b0554ccca9578242f54114770827c46e.tar.gz
mda.lv2-78469da1b0554ccca9578242f54114770827c46e.tar.bz2
mda.lv2-78469da1b0554ccca9578242f54114770827c46e.zip
Fix a ton of warnings.
git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/mda.lv2@4648 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/mdaTestTone.cpp')
-rw-r--r--src/mdaTestTone.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mdaTestTone.cpp b/src/mdaTestTone.cpp
index 96eee47..e2f736c 100644
--- a/src/mdaTestTone.cpp
+++ b/src/mdaTestTone.cpp
@@ -84,8 +84,8 @@ bool mdaTestTone::getProgramNameIndexed (int32_t category, int32_t index, char*
}
#include <stdio.h>
-void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
-void float2strng(float value, char *string) { sprintf(string, "%.2f", value); }
+static void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
+static void float2strng(float value, char *string) { sprintf(string, "%.2f", value); }
void mdaTestTone::setParameter(int32_t index, float value)
{
@@ -431,7 +431,7 @@ void mdaTestTone::process(float **inputs, float **outputs, int32_t sampleFrames)
break;
case 2: //noise
- #if WIN32
+ #ifdef _WIN32
case 3: x = (float)(rand() - 16384); //for RAND_MAX = 32767
#else //mac/gcc
case 3: x = (float)((rand() & 0x7FFF) - 16384);
@@ -520,7 +520,7 @@ void mdaTestTone::processReplacing(float **inputs, float **outputs, int32_t samp
break;
case 2: //noise
- #if WIN32
+ #ifdef _WIN32
case 3: x = (float)(rand() - 16384); //for RAND_MAX = 32767
#else //mac/gcc
case 3: x = (float)((rand() & 0x7FFF) - 16384);