forked from KolibriOS/kolibrios
sdk: build libsupc++ from libstdc++ source
git-svn-id: svn://kolibrios.org@5134 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
30
contrib/sdk/sources/libstdc++-v3/main.c
Normal file
30
contrib/sdk/sources/libstdc++-v3/main.c
Normal file
@@ -0,0 +1,30 @@
|
||||
// The functions contained in this file are pretty dummy
|
||||
// and are included only as a placeholder. Nevertheless,
|
||||
// they *will* get included in the static library if you
|
||||
// don't remove them :)
|
||||
//
|
||||
// Obviously, you 'll have to write yourself the super-duper
|
||||
// functions to include in the resulting library...
|
||||
// Also, it's not necessary to write every function in this file.
|
||||
// Feel free to add more files in this project. They will be
|
||||
// included in the resulting library.
|
||||
|
||||
// A function adding two integers and returning the result
|
||||
int SampleAddInt(int i1, int i2)
|
||||
{
|
||||
return i1 + i2;
|
||||
}
|
||||
|
||||
// A function doing nothing ;)
|
||||
void SampleFunction1()
|
||||
{
|
||||
// insert code here
|
||||
}
|
||||
|
||||
// A function always returning zero
|
||||
int SampleFunction2()
|
||||
{
|
||||
// insert code here
|
||||
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user