Skip to content
Snippets Groups Projects
Commit fa71818c authored by deuce's avatar deuce
Browse files

Add USHRT_MAX macro if it's no already defined.

parent 63e0574a
No related branches found
No related tags found
No related merge requests found
...@@ -37,6 +37,9 @@ ...@@ -37,6 +37,9 @@
#include "sbbs.h" #include "sbbs.h"
#include "cmdshell.h" #include "cmdshell.h"
#ifndef USHRT_MAX
#define USHRT_MAX ((1<<sizeof(unsigned short))-1)
#endif
/* convenient space-saving global variables */ /* convenient space-saving global variables */
char* crlf="\r\n"; char* crlf="\r\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment