Project

Profile

Help

Revision b1e966ed

Added by O'Neil Delpratt over 5 years ago

Saxon/C: Fix up the library location on the mac os

View differences:

latest9.6/hec/Saxon.C.API/SaxonCGlue.c
44 44
       		snprintf(dllname, 8+name_len+1, "%s%s", "/usr/lib", tempDllname);
45 45
		snprintf(resources_dir, 8+rDir_len+1, "%s%s", "/usr/lib", tempResources_dir);
46 46
#elif  defined (__APPLE__) && defined(__MACH__)
47
       		snprintf(dllname, 8+name_len+1, "%s%s", "/usr/lib", tempDllname);
48
		snprintf(resources_dir, 8+rDir_len+1, "%s%s", "/usr/lib", tempResources_dir);
47
       		snprintf(dllname, 14+name_len+1, "%s%s", "/usr/local/lib", tempDllname);
48
		snprintf(resources_dir, 14+rDir_len+1, "%s%s", "/usr/local/lib", tempResources_dir);
49 49
#else
50 50
		//TODO When windows version of Saxon/C is done we will have to fixup this
51 51
		strncpy(dllname, "C:\\Program Files\\Saxonica\\SaxonHEC1.0.1", 42);
......
57 57
	}
58 58
		
59 59

  
60
#ifdef DEBUG	
60
#ifdef DEBUG
61 61

  
62 62
		printf("Library length: %i\n", name_len);
63 63
		printf("Env length: %i\n", env_len);

Also available in: Unified diff