mirror of
https://github.com/thepigeongenerator/sdl_template.git
synced 2025-12-17 05:55:47 +01:00
move includes to more logical positions
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include <math.h>
|
||||
|
||||
#include "gametime.h"
|
||||
|
||||
// constants for pi(π) and tau(τ)
|
||||
#define PI (M_PI) // π constant
|
||||
#define TAU (M_PI * 2.0) // τ constant
|
||||
#define PIf (M_PIf) //
|
||||
#define TAUf (M_PIf * 2.0F) //
|
||||
|
||||
typedef struct {
|
||||
gametime time;
|
||||
} gamedata;
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
#ifndef DYNARR_H
|
||||
#define DYNARR_H
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#define DYNARR_COMB2(a, b) a##b
|
||||
#define DYNARR_COMB1(a, b) DYNARR_COMB2(a, b)
|
||||
#endif // DYNARR_H
|
||||
|
||||
#ifdef DYNARR_TYPE
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user