1/* 2 Title: polyimport.c 3 4 Copyright (c) 2006, 2015, 2019 David C.J. Matthews 5 6 This library is free software; you can redistribute it and/or 7 modify it under the terms of the GNU Lesser General Public 8 License version 2.1 as published by the Free Software Foundation. 9 10 This library is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 Lesser General Public License for more details. 14 15 You should have received a copy of the GNU Lesser General Public 16 License along with this library; if not, write to the Free Software 17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18*/ 19 20// This is the start-up function for Poly/ML for importing a portable database. 21 22#ifdef HAVE_CONFIG_H 23#include "config.h" 24#elif defined(_WIN32) 25#include "winconfig.h" 26#else 27#error "No configuration file" 28#endif 29 30#include "polyexports.h" 31 32#if (defined(_WIN32)) 33int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) 34{ 35 return PolyWinMain(hInstance, hPrevInstance, lpCmdLine, nCmdShow, 0); 36} 37 38#else 39int main(int argc, char *argv[]) 40{ 41 return polymain(argc, argv, 0); 42} 43 44#endif 45 46