removed triple definition of MIN/MAX macros

This commit is contained in:
fishpepper 2017-07-03 19:29:55 +02:00
parent 5112ffd4d1
commit 7b55aed9ed
2 changed files with 2 additions and 5 deletions

View File

@ -1,8 +1,7 @@
#include <stdint.h>
#include "sdcard_standard.h"
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#include "common/maths.h"
/**
* Read a bitfield from an array of bits (the bit at index 0 being the most-significant bit of the first byte in

View File

@ -28,6 +28,7 @@
#include "fat_standard.h"
#include "drivers/sdcard.h"
#include "common/maths.h"
#ifdef AFATFS_DEBUG
#define ONLY_EXPOSE_FOR_TESTING
@ -92,9 +93,6 @@
#define AFATFS_INTROSPEC_LOG_FILENAME "ASYNCFAT.LOG"
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
typedef enum {
AFATFS_SAVE_DIRECTORY_NORMAL,
AFATFS_SAVE_DIRECTORY_FOR_CLOSE,