Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
f0684cb7
Commit
f0684cb7
authored
22 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Moved MAX_PATH definition from gen_defs.h to dirwrap.h.
Added #include <sys/param.h> for PATH_MAX definition on FreeBSD.
parent
82f92731
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/xpdev/dirwrap.h
+18
-2
18 additions, 2 deletions
src/xpdev/dirwrap.h
src/xpdev/gen_defs.h
+0
-12
0 additions, 12 deletions
src/xpdev/gen_defs.h
with
18 additions
and
14 deletions
src/xpdev/dirwrap.h
+
18
−
2
View file @
f0684cb7
...
...
@@ -40,6 +40,10 @@
#include
<stdlib.h>
/* _fullpath() on Win32 */
#ifdef __FreeBSD__
/* FreeBSD-specific */
#include
<sys/param.h>
/* PATH_MAX */
#endif
#include
"gen_defs.h"
/* ulong */
#include
"wrapdll.h"
/* DLLEXPORT and DLLCALL */
...
...
@@ -148,9 +152,21 @@ extern "C" {
#endif
#if defined(__unix__)
#define BACKSLASH '/'
#define BACKSLASH '/'
#else
/* MS-DOS based OS */
#define BACKSLASH '\\'
#define BACKSLASH '\\'
#endif
#if !defined(MAX_PATH)
/* maximum path length */
#if defined MAXPATHLEN
#define MAX_PATH MAXPATHLEN
/* clib.h */
#elif defined PATH_MAX
#define MAX_PATH PATH_MAX
#elif defined _MAX_PATH
#define MAX_PATH _MAX_PATH
#else
#define MAX_PATH 260
#endif
#endif
#if defined(_MSC_VER) || defined(__MINGW32__)
...
...
This diff is collapsed.
Click to expand it.
src/xpdev/gen_defs.h
+
0
−
12
View file @
f0684cb7
...
...
@@ -87,18 +87,6 @@ enum {
,
CTRL_Z
};
#ifndef MAX_PATH
#if defined MAXPATHLEN
#define MAX_PATH MAXPATHLEN
/* clib.h */
#elif defined PATH_MAX
#define MAX_PATH PATH_MAX
#elif defined _MAX_PATH
#define MAX_PATH _MAX_PATH
#else
#define MAX_PATH 260
#endif
#endif
/* Unsigned type short-hands */
#ifndef uchar
#define uchar unsigned char
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment