get dusk past compilation and into linking

This commit is contained in:
kipcode66
2026-01-15 19:24:39 -05:00
parent dd67314902
commit b1e20051ce
17 changed files with 127 additions and 5 deletions
@@ -5,6 +5,9 @@
#include <cmath>
#define m_PI_D 3.141592653589793
#ifndef __MWERKS__
#include "dusk/math.h"
#endif
namespace JStudio {
namespace math {
+4
View File
@@ -7,4 +7,8 @@
#include "d/dolzel.pch"
#endif
#ifndef __MWERKS__
#include "dusk/math.h"
#endif
#endif // dolzel.h
+15
View File
@@ -0,0 +1,15 @@
#ifndef _SRC_EXTRAS_H_
#define _SRC_EXTRAS_H_
#ifdef __cplusplus
extern "C" {
#endif
int strnicmp(const char* str1, const char* str2, int n);
int stricmp(const char* str1, const char* str2);
#ifdef __cplusplus
}
#endif
#endif // _SRC_EXTRAS_H_
+17
View File
@@ -0,0 +1,17 @@
#ifndef _SRC_DUSK_MATH_H_
#define _SRC_DUSK_MATH_H_
#include <cmath>
#define M_PI 3.14159265358979323846f
#define M_SQRT3 1.73205f
#define DEG_TO_RAD(degrees) (degrees * (M_PI / 180.0f))
#define RAD_TO_DEG(radians) (radians * (180.0f / M_PI))
inline float i_sinf(float x) { return sin(x); }
inline float i_cosf(float x) { return cos(x); }
inline float i_tanf(float x) { return tan(x); }
inline float i_acosf(float x) { return acos(x); }
#endif // _SRC_DUSK_MATH_H_