mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	Fixed mangling of the slic3r_main symbol on win32.
This commit is contained in:
		
							parent
							
								
									de55a60bf5
								
							
						
					
					
						commit
						35d984b812
					
				
					 1 changed files with 8 additions and 1 deletions
				
			
		|  | @ -227,7 +227,14 @@ int wmain(int argc, wchar_t **argv) | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	// resolve function address here
 | 	// resolve function address here
 | ||||||
| 	slic3r_main = (Slic3rMainFunc)GetProcAddress(hInstance_Slic3r, "slic3r_main"); | 	slic3r_main = (Slic3rMainFunc)GetProcAddress(hInstance_Slic3r,  | ||||||
|  | #ifdef _WIN64 | ||||||
|  | 		// there is just a single calling conversion, therefore no mangling of the function name.
 | ||||||
|  | 		"slic3r_main" | ||||||
|  | #else	// stdcall calling convention declaration
 | ||||||
|  | 		"_slic3r_main@8" | ||||||
|  | #endif | ||||||
|  | 		); | ||||||
| 	if (slic3r_main == nullptr) { | 	if (slic3r_main == nullptr) { | ||||||
| 		printf("could not locate the function slic3r_main in slic3r.dll\n"); | 		printf("could not locate the function slic3r_main in slic3r.dll\n"); | ||||||
| 		return -1; | 		return -1; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 bubnikv
						bubnikv