Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repair linux64x64 compilation #688

Open
wants to merge 5 commits into
base: Cog
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Repair compilation of platforms/unix/plugins/DropPlugin/sqUnixDragDro…
…p.c on Linux x86_64
  • Loading branch information
tonyg committed Jul 8, 2024
commit f0d1f8eca57913a9b5482ad1b2f18b712dec4411
10 changes: 10 additions & 0 deletions platforms/unix/plugins/DropPlugin/sqUnixDragDrop.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ extern void dndReceived(char *fileName);

#if defined(SQUEAK_INTERNAL_PLUGIN)
extern SQFile * fileValueOf(sqInt objectPointer);
extern usqIntptr_t fileRecordSize(void);
#else
/* Return a pointer to the first byte of of the SQFile data structure file
record within anSQFileRecord, which is expected to be a ByteArray of size
Expand All @@ -61,6 +62,15 @@ fileValueOf(sqInt anSQFileRecord)
{
return interpreterProxy->arrayValueOf(anSQFileRecord);
}

/* Return the size of a Smalltalk file record in bytes. */

/* FilePlugin>>#fileRecordSize */
static usqIntptr_t
fileRecordSize(void)
{
return sizeof(SQFile);
}
#endif /* defined(SQUEAK_INTERNAL_PLUGIN) */

sqInt dropInit(void) { return 1; }
Expand Down