Commit 70bc42f5 authored by Leonardo Solis's avatar Leonardo Solis
Browse files

add _WIN32 in processgrid.h and .cpp

parent ade59660
......@@ -16,12 +16,14 @@
#include <stdlib.h>
#include <math.h>
#ifndef _WIN32
// L30nardoSV
#include <libgen.h>
// libgen.h contains basename() and dir() from a fullpath name
// Specific: to open correctly grid map field fiels and associated files
// http://ask.systutorials.com/681/get-the-directory-path-and-file-name-from-absolute-path-linux
#endif
#include "miscellaneous.h"
......
......@@ -25,9 +25,14 @@ int get_gridinfo(const char* fldfilename, Gridinfo* mygrid)
//char* dir = dirname(ts1);
//char* filename = basename(ts1);
#ifndef _WIN32
// L30nardoSV
char* ts1 = strdup(fldfilename);
mygrid->grid_file_path = dirname(ts1);
#else
#endif
// ----------------------------------------------------
//Processing fld file
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment